I’m trying to make this TextLabel change when the value of a number value changes EG: If the value is 1 then it will say “Warnings: 1”
This is my current script
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("IntValue")
leaderstats.Name = "leaderstats"
leaderstats.Value = 1
local warns = Instance.new("NumberValue")
warns.Name = "Warnings"
warns.Value = 0
warns.Parent = leaderstats
leaderstats.Parent = player
end)
while true do
if game.Players:FindFirstChild(script.Parent.Parent.Username.Text) then
game.Players:FindFirstChild(script.Parent.Parent.Username.Text):WaitForChild('leaderstats')
script.Parent.Text = "Warnings: "..game.Players:FindFirstChild(script.Parent.Parent.Username.Text).leaderstats.Warnings.Value
end
wait()
end
If anyone can help that would be amazing!
Thanks - Aspect