Anyone know why I cant get the children of my model?

So I’m trying to get better at scripting and I thought I’d try making a hatch that opens using a GUI.

However when I tried to get the children of my hatch model (to get the parts and unions) all that appeared was these brackets.

I’m trying to get the children so I can make my model transparent and give it the illusion that the hatch is actually opening through two different top hatch models.

image

Any help is appreciated!

1 Like

it doesnt work like that
if you want to change every parts in table you should do for i,v in function

let me give you example of destroying everything inside “model”

local model = workspace.model

for _,v in pairs(model:GetChildren()) do
v:Destroy()
end
3 Likes

Ahh, I see. If you cant tell I dont know much about scripting. Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.