How to reset rotation in the animator?

so i have a gun that is welded to the RightHand of a viewmodel and i want to rotate it in the same direction as the viewmodels PrimaryPart, but whenever i set the rotation to 0,0,0 it rotates in the same direction as the RightHand. How would i do that?

i don’t believe theres a function but you can take the rotation of the arm on whatever axis made it off center and rotate the gun by that number multiplied by -1 to offset it making it centered.