this is the script i used in serverScriptService
local rl = 5
local il = 5
local InRound = game.ReplicatedStorage.InRound
local Lobby = game.Workspace.LobbySpawn
local gameArea = game.Workspace.GameSpawn
local status = game.ReplicatedStorage.Status
local success = InRound.Changed:Connect(function()
wait(1)
if InRound.Value == true then
for _, player in pairs(game.Players:GetChildren())do
local char = player.Character
char.Humanoid.Position = gameArea.Position
end
else
for _, player in pairs(game.Players:GetChildren())do
local char = player.Character
char.Humanoid.Position = Lobby.Position
end
end
end)
local function intermission()
while wait do
for i = il, 1, -1 do
InRound.Value = false
wait(1)
status.Value = "Game Starting In: ".. i
end
for i = rl, 1, -1 do
InRound.Value = true
wait(1)
status.Value = "Game: "..i
end
end
end
spawn(intermission)
this is the local script i used in the starter Gui
local status = game.ReplicatedStorage.Status
local tl = script.Parent.TextLabel
status.Changed:Connect(function()
tl.Text = status.Value
end)

1 comment
I used the print command to see if there was a problem and there was one. But i dont know where.