I'm making a script where if the number of players is not 2 then the game will not run. However, it's not working. No errors either.
CODE:
while game.Players.NumPlayers < 1 do
Status.Value = "Waiting for more players..."
repeat wait (2) until game.Players.NumPlayers >- 1
end
Intermission()

1 comment
You could use a value which it can increment or decrease by one every time a player is added or removed as I think NumPlayers is deprecated: http://wiki.roblox.com/index.php?title=API:Class/Players/NumPlayers