| |
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
|
| 07 Apr 2013 06:31 PM |
Players = game.Players:GetChildren()
local Player = Players[math.random(1, #Players)] |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 07 Apr 2013 06:32 PM |
| game.Players:GetPlayers()[math.random(1, #game.Players.NumPlayers)]; |
|
|
| Report Abuse |
|
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
|
| 07 Apr 2013 06:34 PM |
^^ I don't trust NumPlayers, it glitches for me some reason |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2013 06:34 PM |
@dr01d3k4, Do you mean:
game.Players.NumPlayers, not
#game.Players.NumPlayers? |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 07 Apr 2013 06:37 PM |
| Yeah oops, got confused with that and #game.Players:GetPlayers() |
|
|
| Report Abuse |
|
|