ediee544
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 2175 |
|
|
| 18 Jul 2014 03:03 PM |
for i = 0,45,30 do --black magic end
|
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 03:06 PM |
Well...I'm not sure exactly, but I'd imagine it would only run once.
for i= Start#, End#, Interval do
end
for i=1,10,.1 do would go 100 times. 1,1.1,1.2,1.3-9.8,9.9,10 |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 03:06 PM |
| I believe 30 is how much it will count by but not 100% sure |
|
|
| Report Abuse |
|
|
| |
|
Falq
|
  |
| Joined: 31 Dec 2007 |
| Total Posts: 2521 |
|
|
| 18 Jul 2014 03:39 PM |
"for i = 0,45,30 do --black magic end "
Okay, so this is a for loop.
0 is the number it will start at, it will go into 45, and the 3rd thing is how much it will increment by.
If you don't specify, in RBX.Lua its default is 1. |
|
|
| Report Abuse |
|
|
ediee544
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 2175 |
|
|
| 18 Jul 2014 03:45 PM |
| so i goes from 0 to 45 30 times or what? |
|
|
| Report Abuse |
|
|
Falq
|
  |
| Joined: 31 Dec 2007 |
| Total Posts: 2521 |
|
|
| 18 Jul 2014 03:46 PM |
Nah, the first time i is 0. After running, it is 30. It goes up by 30. |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 03:48 PM |
for i = 0,45,30 do print("Hello!") wait() end
>Hello! >Hello! |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 04:45 PM |
for i = 0,45,30 do print(i) wait() end |
|
|
| Report Abuse |
|
|