L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 17 Jan 2014 05:13 PM |
to everything that was picked with math.random? ex game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())] |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 17 Jan 2014 05:18 PM |
| I don't think you understand what you're saying. |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 17 Jan 2014 05:20 PM |
| I don't think you understand Lua. |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 17 Jan 2014 05:22 PM |
For example....
Workspace:GetChildren()[math.random(3, #Workspace:GetChildren())] Assigning a different variable for all three of those. |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 05:25 PM |
| I don't think you understand Lua |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 17 Jan 2014 05:28 PM |
| I don't need your negative replies. I simply asked for help and I get a rude reply... |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2014 05:30 PM |
| Well you were being rude to Absurdism. |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 17 Jan 2014 05:34 PM |
Workspace:GetChildren()[math.random(3, #Workspace:GetChildren())]
This will give you one userdatum, not three. |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 17 Jan 2014 05:41 PM |
I was looking for how to do that too XD
Swag = Instance.new("Mudkipz") |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 17 Jan 2014 07:39 PM |
| So i need to call it 3 individual times":? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Jan 2014 07:45 PM |
| Yes, and next time you want to tell someone they don't know Lua, learn it yourself. |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 17 Jan 2014 07:53 PM |
| I had a thought. You can't tell someone if they know something or not. And, let me ask you, how did you get into this? |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 17 Jan 2014 07:55 PM |
local players = game.Players:GetPlayers(); local special = {};
local picked = players[math.random(#players)]; table.insert(special,picked);
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Jan 2014 07:57 PM |
| This isn't the first time someone who wastes a lot (not in a bad way) of time creating a guide to learning Rbx.Lua was treated like this |
|
|
| Report Abuse |
|
|