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.
Any help is appreciated!
1 Like
Himov
(Himov)
August 22, 2023, 3:33am
#2
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!
system
(system)
Closed
September 5, 2023, 3:36am
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.