Hey guys how are you? I hope you do very very well ! This time I’m making a round system with a timer, but when I try to change the Gui Text when the IntValue changes, it doesn’t.
Here’s the script:
- Everything is on a LocalScript
for i, v in pairs(game.Players:GetPlayers()) do
v:WaitForChild('PlayerGui').LeaderTimer.SecondsLeft.Visible = true
v:WaitForChild('PlayerGui').LeaderTimer.ChooseYourLeaderText.Visible = true
end
for i= 1, 45, 1 do
wait(1)
game.ReplicatedStorage.LeaderTimer2.Value = game.ReplicatedStorage.LeaderTimer2.Value - 1
end
for i, v in pairs(game.Players:GetPlayers()) do
v:WaitForChild('PlayerGui').LeaderTimer.SecondsLeft.Visible = false
v:WaitForChild('PlayerGui').LeaderTimer.ChooseYourLeaderText.Visible = false
if v.PlayerGui.LeaderTimer.SecondsLeft.Visible == false then
v.PlayerGui.LeaderTimer.SecondsLeft.Visible = not v.PlayerGui.LeaderTimer.SecondsLeft.Visible
end
if v.PlayerGui.LeaderTimer.ChooseYourLeaderText.Visible == false then
v.PlayerGui.LeaderTimer.ChooseYourLeaderText.Visible = not v.PlayerGui.LeaderTimer.ChooseYourLeaderText.Visible
end
end
And on the script that is on the Gui it is like this:
game.ReplicatedStorage.LeaderTimer2.Changed:Connect(function()
script.Parent.Text = game.ReplicatedStorage.LeaderTimer2.Value
end)
It shows me this number:
It should show me this number:
I know there’s a lot of good people here in the devforum, so I’ll appreciate you and your help If you can give me a hand with this!