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

Why is the script not unachoring the model i made in the workspace?

game.Workspace.Model1.Anchored = false

It's telling me Anchored is not a member of Model1??? what does this mean? :/

1 answer

✓ Accepted answer

an Instance of type Model does not have a property called Anchored. Anchored is a property of Parts not models. If you want to unanchor a model you will have to unanchor every single part that is inside recursive loop would do it something like

function Unanchor(parent)
	for _, p in ipairs(parent)do
		if p:IsA("BasePart")then
			p.Anchored = false
		end
		Unanchor(p)
	end
end

Unanchor(game.Workspace.Model1)

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