One part of animation rig is not changing it's rotation

So I’m using a modified R6 rig for a first person view model for an FPS game I’m making and I made and connected a part called “Handle” to the end of the right arm using the RigEdit plugin (this part is what the gun model gets attached to, so that I can rotate the gun model from the end of the arm as part of an animation)

When animating this rig in Moon Animator it looks fine but when played ingame the handle part stays aligned with the right arm and does not rotate.

Screenshot 2023-04-25 161123


and here is what the rig looks like in RigEdit:

and here is the hierarchy of the rig: