How to offset Motor6D using an attachment

I want to be able to add a Motor6D to the character and use an attachment on a weapon for it to position. However every attempt I’ve made hasn’t worked


Not setting C0

local WeaponClone = Weapon:Clone()
local Joint = Instance.new("Motor6D")

Joint.Part0 = Character.UpperTorso
Joint.Part1 = WeaponClone

and then with C0

Joint.C0 = CFrame.new(WeaponClone.Grip.Position)