I'm trying to create a script that will tell how many players are in the server like
1 | if --What ever would show how many players are in the game Lets use game.players.numplayers = 2 do |
2 | --Bla bla here is the game script |
3 | else |
4 | game.startergui.screengui.textlabel = " 1 player is in your server game wont be starting until somone else joins |
5 | end |
I know I wrote that wronge but what is the way to tell how many players are in a server
1 | if game.Players.NumPlayers < 2 then |
2 | game.startergui.screengui.textlabel = "There is only " .. game.Players.NumPlayers .. " in the server" |
3 | else |
4 | --other code |
5 | end |