HingeConstraint not activating

local WConstraint = Instance.new("HingeConstraint")
WConstraint.Attachment0 = script.Parent.HingeAttachment
WConstraint.Radius = 1
WConstraint.Visible = false
WConstraint.Parent = script.Parent

WConstraint.Attachment1 = script.Parent.Parent.Parent:WaitForChild("Bottom"):WaitForChild("Top").HingeAttachment
script.Parent.Anchored = false

When I use this script, and “Bottom” is in the same Model as the script’s parent’s parent, it makes the hingeconstraint and everything works, but when I clone the entire model from ReplicatedStorage

I believe you need to set the HingeConstraint’s Attachment1. If you don’t then what is it attaching to?

Also, what’s the purpose of setting the Radius? This is just a visual representation of the constraint, and since you’ve set .Visible to false it isn’t doing anything.

i was having issues with the constraint lagging so i left those two for debugging purposes, also i did set its attachment1

[quote=“Scottifly, post:2, topic:1157048, full:true”]
I believe you need to set the HingeConstraint’s Attachment1. If you don’t then what is it attaching to?
´´´
WConstraint.Attachment1 = script.Parent.Parent.Parent:WaitForChild(“Bottom”):WaitForChild(“Top”).HingeAttachment
´´´