So basically it keeps teleporting me to the lobby then back to the game when it is the intermission and no error pops up here is the script:
local roundLength = 120
local intermissionLength = 15
local Status = game.ReplicatedStorage.Status
local inRound = game.ReplicatedStorage.InRound
local Lobby = game.Workspace.Lobby
local Roundspawn = game.Workspace.Maps["Science Lab"].ScienceLabsSpawns.ScienceLabSpawn
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 = Roundspawn.CFrame
end
else
wait(1)
for _, player in pairs(game.Players:GetChildren()) do
local char = player.Character
char.HumanoidRootPart.CFrame = Lobby.CFrame
end
end
end)
local function roundTimer()
while wait() do
for i = intermissionLength, 1, -1 do
inRound.Value = false
wait(1)
Status.Value = "intermission: ".. i .." seconds left!"
end
for i = roundLength, 1, -1 do
inRound.Value = true
wait(1)
Status.Value = "Game: ".. i .." seconds left"
end
end
end
spawn(roundTimer)
****

2 comments
Im pretty sure it keeps teleporting you because in your roundTimer function it constantly changes the boolean, which will trigger your teleporting event for in Round.Changed()
but how do i fix it?