I'm trying to create a GUI in which there's a twelve minute timer, and when the timer reaches zero, all players die, then it disables the GUI timer that kills people, puts another one up, that lasts for about 1 minute and thirty seconds, then after the one minute and thirty seconds, that timer disables, and it re-enables the one that lasts twelve minutes. I've tried so far, but all I have been able to do is mess a bunch of things up. Any tips on how I would make this happen? In a continuous never ending loop.
EDIT I edited the script you gave me, and now it stops at 719. Where did I go wrong?
time=time+720
for i=1, 720 do
time=time-1
wait(1)
for i, player in pairs(game.Players:GetPlayers()) do
player.PlayerGui.TimerSet.Frame.Time.Text=tostring(time) -- Change it to wherever everything in the GUI is
end
player.PlayerGui.Timerset.Frame.PurgeInput.Text("Seconds until next Purge")
end
for i, player in pairs(game.Players:GetPlayers()) do
player:BreakJoints()
end
time=time+90
for i=1, 90 do
time=time-1
wait(1)
for i, player in pairs(game.Players:GetPlayers()) do
player.PlayerGui.TimerSet.Frame.Time.Text=tostring(time) -- Change it to wherever everything in the GUI is
end
end
end
player.PlayerGui.Timerset.Frame.PurgeInput.Text("Seconds until Purge ends")
EDIT Update: I got the script working in every way I wanted it to. One problem. How would I make it so that at the beginning of every timer, it would change the text in the other TextButton in the ScreenGui.Frame.PurgeInput.Text ||||||||| I cant do that without the whole things breaking... Where would I put it?

8 comments
Thank you!
Will this make it so each individual player has a different time? How would I make it so the time is the same for every player?
It is for every individual player. I will change it for all players
Thank you a ton! I've spent all day trying to get this right.
I edited the script a bit trying to insert points where it would change the text, but now it's not working (The timer goes to 719, then stops)
The edit is in the original question
Oh! Woops I did something wrong let me edit it
Nevermind, I don't see why this doesnt work. Here is the original script I got it from (From my game) I will edit my answer