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

How do make a GUI timer?

I can make one on a hint by doing something like

x = 50 if x >0 then x = x-1 else x = TIMES UP

4 answers

For a timer counting from 50 to 0. Here you go.

--Start counting.
for a=50,1,-1 do
--Some relayer here like gui.TextLabel.Text=a.." seconds left"
print(a)
wait(1)
end
--Some relayer here like gui.TextLabel.Text="0 seconds left"
print('0')
--What to do after timer hits.

2 comments

0

This seems like all I need. I can do the rest, thank you!

0

Please give me an Up arrow. Thanks.

a = 50
for i = 1, 50 do
wait(1) --How ever long, second minutes hours
a = a-1
script.Parent.TextLabel.Text = a
end
local x = 60
repeat
	wait(1)
	x = x - 1
	script.Parent.Text = x
until x == 0

Put this into a script. Put the script inside a TextBox/TextButton, and the timer should appear on the GUI.

I've been wondering the same thing.

If you don't understand what he means : he means like a gui in a corner, side or so, that says how much time you have left, then once it says TIMES UP, you get teleported to lobby.

1 comment

0

All of this except the teleportation part. Although that would be kind of nice...

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