How do I make the object stay in the camera's view?

I’m trying to make the gun stay in view of the camera, but the keyframe animation doesn’t correspond to what I want. How do I fix this? Thanks in advance.

Parent the gun to the camera

4 Likes

Seems to have worked. Thank you.