Whenever I die or reset, a while true do statement restarts. Here's the script:
message = script.Parent while true do message.Text = "Starting new game..!" wait(5) message.Text = "" wait(5) message.Text = "Loading Map..." game.Lighting.Map:clone().Parent = Workspace wait(0.5) message.Text = "Building..." wait(0.5) message.Text = "Scripts enabling..." wait(0.5) message.Text = "Fixing..." wait(0.5) message.Text = "Spawning players..." wait(5) for i,v in next,Game:GetService("Players"):GetPlayers() do local ls=script.LocalScript:Clone() ls.Parent=v:WaitForChild("PlayerGui") ls.Disabled=false end message.Text = "3 minutes!" wait(2) message.Text = "" wait(175) message.Text = "5!" wait(1) message.Text = "4!" wait(1) message.Text = "3!" wait(1) message.Text = "2!" wait(1) message.Text = "1!" wait(1) message.Text = "Game over!" wait(1) if message.Text == "Game over!" then for i,v in next,Game:GetService("Players"):GetPlayers() do local ls=script.LocalScript2:Clone() ls.Parent=v:WaitForChild("PlayerGui") ls.Disabled=false game.Workspace.Map:destroy() end end end
Also I want it where, when there is 1 more player in the team "Playing" it says that Player.name has won!