Slow Parent With Rotation Only?

I thought that having a slow parent would be a useful thing to have in one of the fps games I was working on. However, when you walk forward or jump, the gun moves too much. I was just wondering if there is a script or something that is slow parent with only rotation, so when you rotate the camera, the gun takes a while to “catch up”, but only in rotation.
Any help is greatly appreciated.