Hey, I'm trying to make a script that counts down from 20 to 1 and displays it on a text label, but I can't seem to get it working. I printed the text to the output and it counts down just as it should, but the text label always stays at "Game Starting in 20...".
Here is the script, which is located in ServerScriptService:
label = game.StarterGui.Screen.Label
while true do
x = true
t = 20
while x == true do
label.Text = "Game Starting in "..t.."..."
print(label.Text)
t = t - 1
if t == 0 then
x = false
end
wait(1)
end
end
Help would be appreciated, -Spacetimit

2 comments
How would I go about doing this? Do I just copy paste my code into a local script and change StarterGui to PlayerGui?
Pretty much, yes.