kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 09 Feb 2014 07:36 PM |
I'm trying to make it have a 10% change to change the value of a Number vale to 10
while wait(10) do number = math.random() if number == 10 then
end end |
|
|
| Report Abuse |
|
|
|
| 09 Feb 2014 07:40 PM |
k so math.random() alone only returns a number between 0-1, so, you can imagine this coming from it: 0.34754834954
And things like that.
But if you do: number = math.random(1,10) it will choose a number in between 1 and 10 randomly. |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 09 Feb 2014 07:41 PM |
| Oh wait a DUR... I was stupid right there I thought I was going to have to use a table. wtf. |
|
|
| Report Abuse |
|
|
| |
|