brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 12 Oct 2011 02:31 PM |
Is this random thing writen right?
spawn=game.Workspace.[math.random(1, #RedSpawn1,RedSpawn2)] |
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 12 Oct 2011 02:51 PM |
| No ones going to help I guess? |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2011 02:53 PM |
I don't know, I can't see much wrong with it. Perhaps try capitalizing random (in math.random
Perhaps you could post the output results.. |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2011 03:05 PM |
There can only be two arguments when using math.random().
Regards, ~Scarfacial |
|
|
| Report Abuse |
|
|
| |
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 12 Oct 2011 03:08 PM |
spawn=game.Workspace["RedSpawn"..math.random(1,2)]..""
name the spawns RedSpawn1 and RedSpawn2
|
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 12 Oct 2011 03:09 PM |
Sorry that one i messed up.
spawn=game.Workspace["RedSpawn"..math.random(1,2)..""]
|
|
|
| Report Abuse |
|
|
brayden99
|
  |
| Joined: 30 Sep 2007 |
| Total Posts: 1243 |
|
|
| 12 Oct 2011 03:33 PM |
| THANKS !!!! IT WORKS!! lol |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
| |
|