|
| 14 Dec 2014 04:44 PM |
I have an unfinished basic script that I do not know how to finish.
for i, v in ipairs(game.Workspace:GetChildren()) do print() end
How would I put a reference to the table that is being indexed by the FOR loop when I don't have it defined? For example, I can do x = game.Workspace:GetChildren() and then that table is defined and I can access it by going to x[i]. But how would I access the table that is being indexed by the FOR loop when it's not defined? |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2014 04:46 PM |
I can't do this either:
for i, v in ipairs(x = game.Workspace:GetChildren()) do print(x[i]) end
|
|
|
| Report Abuse |
|
|
|
| 14 Dec 2014 04:49 PM |
| How would I print each child of workspace? |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2014 04:51 PM |
I don't understand how you would access the table of workspace...
Someone help please. :( |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|