|
| 05 Sep 2014 03:28 PM |
| You know, that value in Players? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:30 PM |
local numPlayers = game.Players.NumPlayers; print(numPlayers);
|
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:34 PM |
Thats all? Alright.
And whats with the semicolon after the phrases? I know its in other languages like C++, lua too? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:35 PM |
| its not needed in lua, just habits |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2014 03:38 PM |
| Alright, I can tell you know more than lua then if its a habit. Thanks for the help! |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 05 Sep 2014 04:13 PM |
or:
local numPlayers=0
for , v in pairs(game.Players:GetPlayers()) do numPlayers=numPlayers+1 end
this is the badd way though |
|
|
| Report Abuse |
|
|