My Intermission/Round script does run but it gets stuck. Here's the code:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Status = ""
game.ReplicatedStorage.Status.Value = Status
local Seconds = 0
local DisplayText = ""
game.ReplicatedStorage.DisplayText.Value = DisplayText
while #game.Players:GetChildren() <= 1 do
Status = "Waiting"
game.ReplicatedStorage.Status.Value = Status
DisplayText = "Waiting for multiple players..."
game.ReplicatedStorage.DisplayText.Value = DisplayText
wait(1)
end
while #game.Players:GetChildren() > 1 do
Status = "Intermission"
game.ReplicatedStorage.Status.Value = Status
Seconds = 15
DisplayText = "Break time!"
game.ReplicatedStorage.DisplayText.Value = DisplayText
repeat
Seconds = Seconds - 1
DisplayText = "Break time will end in "..tostring(Seconds).." seconds..."
game.ReplicatedStorage.DisplayText.Value = DisplayText
wait(1)
until
Status == "Intermission" and Seconds == 0
Status = "Round"
game.ReplicatedStorage.Status.Value = Status
Seconds = 60
DisplayText = "Round time!"
game.ReplicatedStorage.DisplayText.Value = DisplayText
repeat
Seconds = Seconds - 1
DisplayText = "Round will end in "..tostring(Seconds).." seconds..."
game.ReplicatedStorage.DisplayText.Value = DisplayText
wait(1)
until
Status == "Round" and Seconds == 0
end
How can I fix it?

4 comments
What exactly do you mean it gets stuck?
Even if there is multiple players, It still displays "Waiting for multiple players..." in the status bar.
"if #game.Players:GetChildren() > 1 then break", put that inside of the loop it's getting stuck in
also use GetPlayers() not GetChildren()