anyone know how to do this??
1 | local players = game:GetService( "Players" ) |
2 |
3 | players.PlayerAdded:connect( function (player) |
4 | if players.NumPlayers > = 3 then |
5 | --This is where you can start your game |
6 | end |
7 | end ) |
Hope this helps. :)
1 | if game.Players.NumPlayers > = 3 then -- If game.Players.NumPlayers is more than or equal to then |
2 | print ( "Enough players!" ) -- output |
3 | -- Add your additional code here |
4 | else -- If there isn't, then |
5 | print ( "Not enough players!" ) -- output |
6 | end |