skrank249
|
  |
| Joined: 03 Nov 2007 |
| Total Posts: 509 |
|
|
| 02 Aug 2013 08:15 PM |
How can I choose 2 random players from players?
If you'll help me it's greatly appreciated |
|
|
| Report Abuse |
|
|
Ryusk
|
  |
| Joined: 14 Jul 2013 |
| Total Posts: 6 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 02 Aug 2013 08:16 PM |
math.randomseed(tick()) --No stupid double ppl
Players = Game.Players:GetChildren()) Random1 = math.random(1, #Players) Random2 = 0 repeat Random2 = math.random(1, #Players) until Random1 ~= Random2 --PREVENT DOUBLE PPL
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 02 Aug 2013 08:17 PM |
Then: Players[Random1] --Random player1 Players[Random2[ --^^2 |
|
|
| Report Abuse |
|
|