I do not know how to do that so I am asking you guys
This should work, next time before posting please search online. I found it instantly. Thank you :)
1 | local players = game:GetService( "Players" ) |
2 |
3 | while wait() do -- Maybe don't use wait(), but just an example (https://devforum.roblox.com/t/avoiding-wait-and-why/244015) |
4 | if #players:GetPlayers() > 2 then -- checks to see if there is more than 2 players, #players returns the number of players for us :) |
5 | print (“Enough players! Starting”) |
6 | else |
7 | print (“Not enough players = (”) |
8 | end |
9 | end |