Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 02 May 2014 04:56 PM |
So-far I have
local random = game.Players[math.random(1, #players)]
Meaning it would find a random player from 1, to the number of players, right? |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 04:56 PM |
| local random = game.Players:GetChildren()[math.random(1,#game.Players:GetChildren())] |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 02 May 2014 04:59 PM |
| @Sensei, Players:GetPlayers() |
|
|
| Report Abuse |
|
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
|
| 02 May 2014 04:59 PM |
players was defined as game.Players:GetChildren(), sorry forgot to mention that :P
But uh, i forogt to do that first part :) Ty |
|
|
| Report Abuse |
|
|
Clickest
|
  |
| Joined: 06 Aug 2013 |
| Total Posts: 6504 |
|
| |
|
|
| 02 May 2014 05:00 PM |
| Why GetPlayer(), nothing else would ever go into Players.. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 05:01 PM |
gawd..
Random = game.Players:GetPlayers()[math.random(game.Players:GetPlayers())]
don't talk if you don't know what GetPlayers() is.. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 05:04 PM |
| I know what it is, but does it matter, nothing else goes into players.. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 05:16 PM |
you have no evidence to support your statement, therefore you are wrong.
#nerdsunited |
|
|
| Report Abuse |
|
|