Trying to move arms to mouse position without effecting animation

so i have this script from a kind person who helped me out. the script rotates the arms towards the mouse position which works how i want it to.

however when my right and left arm moves towards the mouse, the arms don’t stay together. im trying to make it so that the arms will stay together with the sniper when the arms are rotating towards the mouse but idk how to do that. i appreciate any help.

i show what my animation looks like and then i show the problem in the video: