togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
|
| 11 Mar 2013 08:21 PM |
random on output is saying this player = p[math.random(1,#p)] attempt to get length of global 'p' (a nil value)
Here is the script p = game.Players:Children() player = p[math.random(1,#p)]
I want output to be clear so help me edit the script. |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2013 08:22 PM |
the method is GetChildren() but for players i usually use GetPlayers()
p = game.Players:GetPlayers() player = p[math.random(1,#p)] |
|
|
| Report Abuse |
|
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|
togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
| |
|