Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Unanchor everything in a group?

Is there a way to unanchor everything in a group?

I think you use GetChildren

I've got no idea.

1 comment

0

You can use GetChildren if you want

1 answer

✓ Accepted answer

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.

1 comment

0

Thank you so much.

This discussion is preserved as it was. New answers, comments, and votes are closed.