I tried making a round system nothing is working

You can write your topic however you want, but you need to answer these questions:

  1. **What do you want to achieve? i want to make a round system but nothing is working idk why i followed the tutorial but nothing is working my code is below
-- local roundLength = 120
local intermissionLength = 15
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, 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)

also here is the video if that helps https://www.youtube.com/watch?v=ESzmiC_AzLw

Is there any errors? (Char30000000000)

no none idk why its not working

You did not define roundLength I think what the problem is.

Try this:
local roundLength = 120
local intermissionLength = 15
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, 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)

Change the first line in the code to. local roundLength instead of – local roundLength.

nope nothing its not working

(30 Characters)

do you think i should look for another tutorial?

No, I think you put the two lines in front of local roundLength that makes it not work.

i changed that image

It should be: local roundLength = 120. Don’t put any lines like you did the first time.

This right? image

bc i changed that and nothing happened :confused: