Problems welding accessory to a character's RightUpperLeg

Im trying to add an accessory to my character’s RightUpperLeg, however when i add it to my character the AccessoryWeld welds to lower torso instead of right upper leg.
I have done a similar accessory for LeftUpperLeg and it welds perfectly.

I used Humanoid:AddAccessory to put it in my character. I think that the problem might be in the attachment’s name. Lower torso has an attachment named “RightHipRigAttachment”, and so does Right Upper Leg. I know that Humanoid:AddAccessory attaches accessories by finding attachments that share the same name on them, however i have no idea how i could fix this. I dont know why i didnt had any problems with the weld of the left leg accessory and now this is happening.

The script:

char.Humanoid:AddAccessory(game.ReplicatedStorage:WaitForChild("RightUpperLegArmor

The accessory:
image

The welding problem:
image
image

1 Like

I have the exact same problem, AccessoryWeld keeps on messing up my stuff, and whenever I delete the welds, it wrongly positions my object.

1 Like

I actually managed to fix this. Here is what i did:

local rightup = char:WaitForChild("RightUpperPants")
--It would break sometimes so i used a loop to make sure it would weld
repeat
rightup.Handle:WaitForChild("AccessoryWeld").Part1 = char.RightUpperLeg 
wait()
until rightup.Handle:WaitForChild("AccessoryWeld").Part1 == char.RightUpperLeg
rightup.Handle.AccessoryWeld.C0 = CFrame.new(Vector3.new(0,0,0) )
rightup.Handle.AccessoryWeld.C1 = CFrame.new(Vector3.new(0,0,0) )

image