RoboticI
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 917 |
|
|
| 31 Jul 2014 09:47 PM |
I watched the roblox tutorial on scripting basics and saw the "for" loops. I tried it out myself. I copied everything he had exactly to get a feel for it. For some reason in the output I got 1 1 1 instead of 1 2 3. Here is my script for i = 1, 3 do print(1) end I don't understand why it is wrong. If someone would please tell me what is wrong I would appreciate it. Thank you. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2014 09:49 PM |
for i = 1, 3 do print(i) end |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 31 Jul 2014 09:49 PM |
You're just printing (1) three times.
for i = 1, 3 do print(i) --print i which changes from 1 to 2 to 3 end |
|
|
| Report Abuse |
|
|
RoboticI
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 917 |
|
|
| 31 Jul 2014 09:50 PM |
| Thank you for the help. I see what happened, the i was hard to distinguish from the 1. |
|
|
| Report Abuse |
|
|