I asked a question with a script slightly different from this not longer than 10 minutes ago. The answer that I got only kind of worked because the game stops working when it meets the player requirements. My script is down below.

--// Variables
local MapStorage = workspace.MapStorage
local IntermissionTime = 15
local Players = game.Players:GetChildren()
local Status = game.ReplicatedStorage.StatusValue
local RoundInProgress = false

--// Intermission
while wait(1) do
    if not RoundInProgress and #Players >= 2 then
        for i = IntermissionTime, 0, -1 do
            if #Players < 2 then break end
            Status.Value = "Intermission: ".. i
            wait(1)
        end
    elseif not RoundInProgress and #Players < 2 then
        Status.Value = "2 or more players are required to start"
    end
end

1 comment

0

if u need more then 2 players do if #Players >= 2 then...