Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trying to make a countdown with a Text Label. Its not working and there is no errors?

local Inter = game.StarterGui.ScreenGui.TextLabel.Intermission

Inter.Value = 15

while true do
	Inter.Parent.Text = Inter.Value
	wait(1)
	Inter.Value = Inter.Value -1
end

scripts are in server storage

1 answer

You put a script inside ServerStorage which would not run. Instead, put the script inside the TextLabel.

local inter = script.Parent.Intermission

inter.Value = 15

while true do
	inter.Value = inter.Value - 1
	inter.Parent.Text = tostring(inter.Value)
	wait(1)
end

Also, you have to use the tostring() function as the script would error because gui text is string-only, and you used a number.

This discussion is preserved as it was. New answers, comments, and votes are closed.