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
|