How do I weld a part to a player and it follows their animation?

I am pretty sure this is scripting since I am working with welds. How do I get a welded part to follow a players animation? I am using weld constraints but they dont follow the animation.

Here is my code:

local function weldTo(One,Two)
	local weld = Instance.new("WeldConstraint")
	weld.Parent = One
	weld.Part0 = One
	weld.Part1 = Two
end

1 Like

The tried-n-true Motor6D instance is what you can use to constrain parts onto animating parts. In your case you just need to replace “WeldConstraint” with “Motor6D”.

Make sure to parent the Motor6D after setting all of the properties required (like Part0 and Part1) as well!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.