markjac
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 927 |
|
|
| 19 Sep 2017 02:07 PM |
| So how would you repeat a script the same amount of a value, for an example if a value is 11 the script will repeat 11 times, if a value is 5 the script will repeat 5 times. |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
| |
|
|
| 19 Sep 2017 02:15 PM |
what lae said was kinda vague; visit wiki or something
for i=1, maximum, increment do --code end
i=1 is the starting number, can be any value second part is the point at which it stops third is increment, or the amount it goes up each time
so if i had something like 0.5 for the increment, it'd start at 1, and go up by 0.5 until it reaches the maximum number
the third part is completely optional, leave it blank and it starts by 1's by default
|
|
|
| Report Abuse |
|
|
markjac
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 927 |
|
|
| 19 Sep 2017 02:22 PM |
| ok, thanks guys for the help. |
|
|
| Report Abuse |
|
|