Animation of weapons in the camera when you rotate the camera

Hello, I’m writing through an interpreter, so do not swear at mistakes.
I create a game from the first person, how to make weapons in the hands when turning is not static? The slow parent works awfully, when moving forward / right / left / back the model flies away.
In games, when the camera is rotated, the gun moves slightly toward the turn and returns to its position. How to do this in Blender?