local part = script.Parent.Parent part.Anchored = false
What are you trying to Unanchor? A BasePart or a Model? It has to be a base part (wedge, part, cylinder, etc) to use the UnAnchor function. If it’s a model you would have to unanchor all of the parts in it. Like this:
local model = script.Parent local Part1 = model.Part local Part2 = model.Wedge Part1.Anchored = false Part2.Anchored = false
If you are trying to unanchor a model then just do a loop through it and find the baseparts.
local Model = script.Parent.Parent -- Assuming That is the model for i,v in pairs(Model:GetChildren()) do if v:IsA("BasePart") then v.Anchored = false end end
Otherwise if script.Parent.Parent is not a model and not a basepart Anchored is not a property.