Animation in game not playing correctly

I made an animation for a minigun and the barrel in game rotates completely differently than how it does in the animation

How animation looks in editor

How animation ends up looking

It seems to be only the barrels rotation that is messed up for some reason.

I thought it might be a bug with moon animator and tried the default animator but the bug still happens.

I’ve triple checked that the models and motor6d’s are set up the exact same way between the animator and the one that is used in game.

The bug still happens even if only the idle animation is playing on the gun as well.

I’m out of ideas as to what might be causing this so help is appreciated!