breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
|
| 01 Apr 2012 10:10 AM |
When I'm trying to make a random Vector3 then this happens: e.Position = Vector3.new(math.random(1000, -1000), math.random(1000, -1000), math.random(1000, -1000))
_OUTPUT_: Workspace.PCB.ExpScript:17: bad argument #2 to 'random' (interval is empty)
What does that mean , how do I fix it? |
|
|
| Report Abuse |
|
|
malachi11
|
  |
| Joined: 07 May 2008 |
| Total Posts: 2420 |
|
|
| 01 Apr 2012 10:12 AM |
| The lowest number goes first. Try math.random(-1000,1000). |
|
|
| Report Abuse |
|
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
| |
|
jode6543
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 5363 |
|
|
| 01 Apr 2012 10:15 AM |
Well, math.random() takes two arguments: its minimum, and its maximum. If you switch the two, and the maximum is smaller than the minimum, then you get that error. Simply swap the parameters, like so:
math.random(-1000, 1000)
And you should be fine. |
|
|
| Report Abuse |
|
|
jode6543
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 5363 |
|
|
| 01 Apr 2012 10:15 AM |
UMG LATETOAST AGAAAAAAAAIIIIIIIIIIINNNNNNN >:C *raigfaic* |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2012 10:17 AM |
| My toast is always late. Mainly because we turn the toaster off. |
|
|
| Report Abuse |
|
|