I have this script that makes a round that repeatedly teleports a player back and forth between the lobby and game area. Its been working so far but the roundLength is being displayed in seconds while I would want it to display in minutes. I have tried to turn it into increments of 60 so far but I haven't fixed it.
local roundLength = 1000
local intermissionLength = 60
local InRound = game.ReplicatedStorage.InRound
local Status = game.ReplicatedStorage.Status
local LobbySpawn = game.Workspace.LobbySpawn
local GameAreaSpawn = 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 = GameAreaSpawn.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 roundTimer()
while wait() do
for i = intermissionLength, 0, -1 do
InRound.Value = false
wait(1)
Status.Value = "Intermission: ".. i .." seconds left!"
end
for i = roundLength, 0, -1 do
InRound.Value = true
wait(1)
Status.Value = " ".. i .." seconds until Alpha Warhead detonation!"
end
end
end
spawn(roundTime
r)
