Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Intermission Timer Help?

Asked by 9 years ago
for i = 1, 30 do
    wait(1)
    if game.Players.NumPlayers < 2 then
        break
    end
end
if game.Players.NumPlayers < 2 then
    while true do
        if game.Players.NumPlayers > 1 then
            break
        end
        wait()
    end 
end

I'm making a script for my fighting game. And it is supposed to run a 30 second intermission. But if there is only one player left, it waits for a new player then restarts the intermission timer.

Answer this question