Character Rotation Problem

Hello

I made a Simple Third person Character and Fps arms ( just the arms )
I have all with an dedicated server and activated use controller pitch and yaw. to the fps mesh i attached a weapon.
I have a simple script to shoot and calculate directions. ( use camera pitch and yaw and muzzle yaw and pitch to determine my impact point) evrything works fine but my thrird person mesh rotates with the camera and slides on the ground. when i disable use controller pitch then shooting is broken and the shots just came out of the muzzle when i aim straight. when looking down or up the bullet comes out of the air. is there any fix for this ? I assume that i need to create an aim offset ( 9 anims with look up down and middle on left right …) ?