Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
|
| 07 Apr 2015 02:17 PM |
So for example:
(If I'm doing this right.)
local sirens = {workspace.siren1, workspace.siren2, workspace.siren3 }
I want it to pick one of the sirens randomly per say.
Thanks for the help guys, I appreciate it. |
|
|
| Report Abuse |
|
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 07 Apr 2015 02:21 PM |
Here's an example of one I use for maps, see if you can figure out how to apply that to your sirens.
Maps = game.ServerStorage.Maps:GetChildren() ranGame = math.random(1, #Maps) gameChosen = Maps[ranGame]
|
|
|
| Report Abuse |
|
|
|
| 07 Apr 2015 02:21 PM |
local Random = sirens[math.random(1,2)]
Total Posts: 404 ---------- Not Found |
|
|
| Report Abuse |
|
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
| |
|
|
| 07 Apr 2015 02:22 PM |
KLink's is better. I just gave general idea
Total Posts: 404 ---------- Not Found |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
| |
|
Dralian
|
  |
| Joined: 21 Mar 2013 |
| Total Posts: 7624 |
|
| |
|