Why are attachments not moving to correct location?

When I move a attachments cframe to a part’s cframe it like doesnt go there as you would expect
image (position of the attachment relative to character)

local RightLeg = character:WaitForChild("Right Leg")
local LeftLeg = character:WaitForChild("Left Leg")
local AttachmentRight = Instance.new("Attachment", RightLeg)
local AttachmentLeft = Instance.new("Attachment", LeftLeg)
AttachmentRight.CFrame = character:WaitForChild("Right Leg").CFrame
AttachmentLeft.CFrame = character:WaitForChild("Left Leg").CFrame

Script

Thates because the CFrame of an Attachment is based on Object Space, try using WorldCFrame