Problem with camera

I’m trying to make an fps shooter from scratch, but I’m having some problems with the gun graphics. To keep it on the camera at all times, I attached it to the camera, but it seems that the gun mesh stretches when the camera moves up or down, and the gun also moves up and down, blocking the view. Please help.

For the FPS the camera is rendered separate of the world view at a different Field of View.

To speed up your learning process I suggest searching the marketplace for a free or paid asset that does what you want to do and study how they do it.

We all been there, how complicated it could be? Turns out there are a lot of stuff you need to figure out to have something work correctly. No need to blindly reinvent the wheel figuring out stuff that game developers perfectionated over decades.