Hi guys, what am I supposed to delete and change in this intermission script so that when the game is over, players return to their exact position before the game started
local rushtime = 60
local intermission = 250
local InRound = game.ReplicatedStorage.InRound
local status = game.ReplicatedStorage.Status
local LobbySpawn = game.Workspace.LobbySpawn
local GAS = game.Workspace.GameAreaSpawn
InRound.Changed:Connect(function()
wait(1)
if InRound.Value == true then
for _, player in pairs(game.Players:GetChildren())do
local char = player.Character
char.HumanoidRootPart.CFrame = GAS.CFrame
end
else
for _, player in pairs(game.Players:GetChildren())do
local char = player.Character
char.HumanoidRootPart.CFrame = LobbySpawn.CFrame
end
end
end)
local function goldRushTime()
while wait() do
for i = intermission, 1, -1 do
InRound.Value = false
wait(1)
status.Value = “Next Gold Rush in: “…i…” seconds!”
end
for i = rushtime, 1, -1 do
InRound.Value = true
wait(1)
status.Value = “Time left: “…i…” seconds!”
end
end
end
spawn(goldRushTime)