Is there a way to unanchor everything in a group?
I think you use GetChildren
I've got no idea.
Is there a way to unanchor everything in a group?
I think you use GetChildren
I've got no idea.
Yes, you've got the right idea. You would use :GetChildren(), this is a way to cycle through a table of things.
for _,v in pairs(workspace:GetChildren()) do -- change this to your group
if v:IsA('BasePart') then -- check if it's a basepart (meshpart, part, etc)
v.Anchored = false -- and, unanchor
end
end
You can read up more on GetChildren() here.
Thank you so much.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You can use GetChildren if you want