i_Movie
|
  |
| Joined: 06 Apr 2014 |
| Total Posts: 11725 |
|
|
| 13 Aug 2016 05:33 PM |
Does that get the children of children? I've seen it used quite a bit but never really understood what it does.
On wiki it's used to print out the values inside a table.
What if I did this?
for i,v in next, Model:GetChildren() do print(v) end
Would that print out basically everything inside the model, including descendants?
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 05:35 PM |
It's the same exact thing as pairs.
pairs(Model:GetChildren) actually results in next, ReturnedChildren
|
|
|
| Report Abuse |
|
|
i_Movie
|
  |
| Joined: 06 Apr 2014 |
| Total Posts: 11725 |
|
|
| 13 Aug 2016 05:36 PM |
Oh, I never knew that. I thought they had different functionalities. I guess not.
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 05:38 PM |
| https://www.lua.org/pil/7.3.html |
|
|
| Report Abuse |
|
|