Can someone explain Part0 and Part1 of Motor6d's to me

I’m trying to rig my viewmodels arms up to the gun using Motor6d’s and I’m having a lot of trouble with it. I made the Part0 property of the Motor6d set to the handle of the gun using this code:

clonedGun.Handle.Right.Part0 = clonedGun.Handle
clonedGun.Handle.Right.Part1 = viewModel.RightArm
clonedGun.Handle.Left.Part0 = clonedGun.Handle
clonedGun.Handle.Left.Part1 = viewModel.LeftArm

It produced this result:
image
It’s pretty obvious that this is not the result I wanted so I thought maybe I just have to switch around the Part0 and Part1 properties since it looks like instead of the arms hooking up to the gun, the gun is hooking up to the arms. So I changed my code to this:

clonedGun.Handle.Right.Part1 = clonedGun.Handle
clonedGun.Handle.Right.Part0 = viewModel.RightArm
clonedGun.Handle.Left.Part1 = clonedGun.Handle
clonedGun.Handle.Left.Part0 = viewModel.LeftArm

Yet it produced the exact same result:
image
I have very minimal experience with Motor6d’s so I’m completely lost on what is going on and why it’s producing this result. If someone could help me that would be greatly appreciated!

Hey, Part0 and Part1 are the attach points of the Motor, however, if you’d like to change the location of where it actually stands, try changing the C0 in the motor (which is the offset location).