|
| 23 Mar 2015 08:31 PM |
I have like 6 variables labeled like so:
a1 = vector3 a2 = vector3 a3 = vector3 a4 = vector3 etc...
I need to call them within a for loop like so:
for i = 1, 6 do game.Workspace.Brick.Position = ("a"..i) end
this doesn't work. Please help me make it work |
|
|
| Report Abuse |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 23 Mar 2015 08:33 PM |
Put them in a table:
local vectors = { a1 = vector3, --etc }
for i = 1, 6 do blah.Position = vectors["a"..i]; end
|
|
|
| Report Abuse |
|