Error Positioning model on character using CFrame, glitch?

Hello everyone. Been working on welding player models to the current player avatar, and was wondering as to why when I try to position the knee pad(in this case) high on the players avatar, it doesn’t function on the CFrame.

Here’s the block of code that handles the welding of the asset to the payers LeftLeg

NOTE THIS IS R6

-- LeftLeg
		local leftLegclone = folder.LeftLeg:Clone()
		local weld = Instance.new("ManualWeld")
		leftLegclone.Parent = plr.Character
		leftLegclone:SetPrimaryPartCFrame(plr.Character["Left Leg"].CFrame*CFrame.new(0,2,0))
		weld.Parent = leftLegclone.PrimaryPart
		weld.Part0 = leftLegclone.PrimaryPart
		weld.Part1 = plr.Character["Left Leg"]
		leftLegclone.Name = "CharModel"

I believe I am doing this correctly, but I don’t know for certain if something changed or what, so decided to ask!!

Any and all help is appreciated!
:slight_smile:

I have found the error seconds after posting this thread lol… But for the sake of if someone may have this problem, I’ll post the solution.

So the issue was I was using ManualWeld, which won’t allow you to change the CFrame.
To fix this, I used WeldConstraint and it functions fine now.

The new code looks like this;

-- LeftLeg
		local leftLegclone = folder.LeftLeg:Clone()
		local weld = Instance.new("WeldConstraint")
		leftLegclone.Parent = plr.Character
		leftLegclone:SetPrimaryPartCFrame(plr.Character["Left Leg"].CFrame*CFrame.new(0,2,0))
		weld.Parent = leftLegclone.PrimaryPart
		weld.Part0 = leftLegclone.PrimaryPart
		weld.Part1 = plr.Character["Left Leg"]
		leftLegclone.Name = "CharModel"