Right leg accessory is weirdly clipped inside the leg

The problem is that the little trinket thingy should be facing outwards, I don’t know how to do this though.

23b2661e3b015305735c9e3e9fe4a37a

local Part = script.FloatingKnight.PrimaryPart -- // SET THIS BY YOURSELF // --
		local RightUpperLeg = Character:WaitForChild("RightUpperLeg")
		Part.Position = RightUpperLeg.Position

		local Weld = Instance.new("Weld", Part)
		Weld.C0 = RightUpperLeg.CFrame:ToObjectSpace(Part.CFrame + Vector3.new(0.5, 0, 0)) --vector3.new is the offset to the to the correct side of the leg
		Weld.Part0 = RightUpperLeg
		Weld.Part1 = Part
		Weld.Enabled = true
		Part.Parent.Parent = Character

Here’s what I’m trying to get it to look like:
2600789b8745a7a7a138313537a4e12f

I don’t know what CFrame/Vector math I have to do to get the little trinket to be facing outwards and for it to not be clipped inside the leg.

So find where you want it in studio then do:


local toTravel = trinketCFrameRn:inverse() * goalTrinketCFrame

trinket.CFrame.C0 *= toTravel
1 Like