So I'm making a timer for my game but when I play it, the gui gui its just stuck on "Round starting in 5 seconds!"
Important variables for code:
local TopBar = game.StarterGui.Main.TopBar
Countdown:
for i = 5,0,-1 do
while wait(1) do
TopBar.Text = "Round starting in "..i.." seconds!"
print(i)
if TopBar.Text == "Round starting in 0 seconds!" then
break
end
end
end
Then it breaks out of the loop and moves on.
