Motor6Ds acting weird

I’m trying to make a combat system from scratch, I’m working on the player equipping a pistol. and got stuck on a problem, and I’m pretty sure it’s a bug but.

Whenever I have a part that is smaller than another and have a motor6d on the smaller one connecting to the bigger one, It just breaks.
It only rotates the smaller one, even though the bigger one should rotate it also rotates the whole grid.

This is what it looks like
image
Instances
image
image
Yet it still rotates like this
image
Notice that I’m rotating the big block, yet the small one moves in weird ways and the big one doesn’t.
What do I have to do to fix this?

The part which rotates depends on the root part of an assembly, by default it should be the bigger part. Maybe create an additional part that represents the root which doesn’t move depending on how you want to control it.

You can adjust it by changing the root priority and to debug you can use the :GetRootPart function of a part and print it out within the command bar.

1 Like

Yes, it seems to work. Root priority was the problem. Thanks for the help!

1 Like