Motor6D Hammer Tool Not Working

So, im trying to make a hammer with motor6D. (much like the Chiefjustus Gavel) but everytime i equip it, it flips itself over!!
the heck-|359x500
How do i fix this?

Here is the code if you are wondering:

script.Parent.Parent[“Right Arm”]:WaitForChild(‘RightGrip’):Destroy()
local Motor6D = Instance.new(‘Motor6D’, script.Parent.Parent[“Right Arm”])
Motor6D.Part0 = script.Parent.Parent[“Right Arm”]
Motor6D.Part1 = script.Parent.Handle
Motor6D.DesiredAngle = 0
local anim = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.Idle)
anim:Play()

1 Like

Perhaps try setting all the parts’ CanCollide property off?

Not sure if that’d make any difference, but it’s something to try.

Apparently i needed to set the C1 and C0 of the motor6D to

0, -0.895640373, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1

and

1.49999905, -0.025352478, -1.71128671e-15, -4.37113883e-08, -4.37113776e-08, 1, 0, 1, 4.37113776e-08, -1, 1.91068504e-15, -4.37113883e-08