CeRibius
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 356 |
|
|
| 23 Aug 2016 03:53 PM |
Is there a way I can use it to just edit all the children in a model?
like
game.Workspace.Model:GetChildren()
but I don't know how to use it to edit all parts in a model. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2016 04:02 PM |
for i, v in pairs(game.Workspace.Model:GetChildren()) do --code end |
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 23 Aug 2016 05:14 PM |
| Not for the snippet above, i is the index (how many times the loop has looped currently), and v is the child object itself. |
|
|
| Report Abuse |
|
|
JasonXunn
|
  |
| Joined: 18 Jan 2015 |
| Total Posts: 857 |
|
| |
|
|
| 23 Aug 2016 05:47 PM |
| Should have posted this in scripting but at least you got help. |
|
|
| Report Abuse |
|
|