It returns a table of everything located inside of whatever object you use :GetChildren() with. For example, if you have the following in Workspace:
Workspace
> Base
> Camera
Then using Workspace:GetChildren() would return a table with the values inside of it being Base and Camera. The for statement provided in the Wiki would make every part in Workspace be completely reflective until it reaches something that isn't a part, which stops it from searching.
Tables are also fairly advanced, so I'm not sure if you would have used them or not yet. However, if you haven't, a simple explanation of them is that they return several values (In this case, objects), and using table[number] returns whatever value is at that point.
For example, when the table has the following values:
"H"
"E"
"L"
"L"
"O"
print(table[2]) would print the second value, or "E".
PM me if you have any more questions, or if you didn't understand this, and I'll explain it again. :D |