As you can see it's a simple script, just using for loops to act as timers and changing the values I made when it ends. Like I said in the title the timer resets to intermission 30 seconds when I die in the game. Is there a way to make it keep counting down/be the same for everyone?
while wait() do --Won't start until these load local seconds1 = script.Parent:WaitForChild("Seconds") local prefix1 = script.Parent:WaitForChild("Prefix") --Default text and variables local label = script.Parent.ScreenGui.TextLabel local seconds = seconds1.Value local prefix = prefix1.Value --Changing variables seconds = 31 prefix = "Intermission" --Round/Intermission loop for i = 1,seconds do wait(1) seconds = seconds - 1 label.Text = prefix.." "..seconds end --Changing variables seconds = 11 prefix = "Get Ready" --Round/Intermission loop for i = 1,seconds do wait(1) seconds = seconds - 1 label.Text = prefix.." "..seconds end --Changing variables seconds = 61 prefix = "Game" --Round/Intermission loop for i = 1,seconds do if _G.DeadPeople >= game.Players.NumPlayers then seconds = "" prefix = "Game Over!" wait(4) elseif _G.DeadPeople < game.Players.NumPlayers then wait(1) seconds = seconds - 1 label.Text = prefix.." "..seconds end end end
I tried to make the script as neat as possible for you. I appreciate any help!