I made a mesh. and I made a problem. now the camera is 1000000 meters away

Right click in the viewport to Go There. Also, double clicking the elements of the World Outliner takes one there:


make a static mesh 100000 units away so the gun will aim where the player is looking the whole time

That’s a tad bizarre, I’ll admit.