I'm kinda stuck. If you could answer on what to delete/add, that would be highly appreciated.
I'm trying to make a countdown, and when the countdown reaches 0, the countdown waits 5 seconds and then resets/restarts the countdown.
The script is placed inside of the TextLabel.
local time = 150 --The time it starts at.
for i = 1, 150 do
wait(1)
time = time - 1
script.Parent.Text = tostring(time)
end
script.Parent.Text = "Game over."
if script.Parent.Text == 0 then
wait(5)
script.Parent.Text = "150"
end
This is all I have so far. Any help would be appreciated!

1 comment
Its not perfect and you can change things as needed or rearange them as you want but that should help give you a rough idea on how to do it Good luck with your project