I'm trying to make a script that would unanchor parts inside a model, which is inside another model. Like this:
- Workspace
- Model
- Script (the script)
- ELights (first Model)
- EmergencyLight (second Model)
- Part (the parts i want to unanchor)
- Part
- EmergencyLight (second Model)
- Part (the parts i want to unanchor)
- Part
- EmergencyLight (second Model)
- Model
To do this, I would use :GetChildren()
c = script.Parent.ELights:GetChildren()
for i=1, #c do
if c[i].className == ? then
c[i].Anchored = false
end
Now, the code above is incomplete, as I don't know how to get the children after doing :GetChildren() on the Model which is named "ELights" This is where i ask for help.

1 comment
How did you make the boxes and circles?