A timer that counts down the seconds. Example:
The zombies will attack in 3
That counts down in seconds?
Please help.
-mastersniper7399
Use loops like for do
or repeat
Repeats
1 | Time = 3 --How many seconds until round starts or something. |
2 | local h = Instance.new( "Hint" , workspace) --The hints are so players can see what how much time there is on the top of their screen. If you are using GUIs that could work too. |
3 | repeat |
4 | h.Text = "The zombies are attacking in " ..Time |
5 | wait( 1 ) --One second at a time |
6 | Time = Time - 1 |
7 | until Time < = 0 |
8 | --Rest of the script |
for do
1 | local h = Instance.new( "Hint" , workspace) --The hints are so players can see what how much time there is on the top of their screen. If you are using GUIs that could work too. |
2 | for i = 3 , 0 ,- 1 do --start at 3 seconds end at 0 seconds and take away one second at a time |
3 | h.Text = "The zombies are attacking in " ..i |
4 | wait( 1 ) |
5 | end |
6 | --Rest of script |
timervalue = --timer text object here that you pass strings to timeron = true
while timeron do timervalue = timervalue - 1 wait(1) end
that should work