How to make weapons move without moving the camera?

Hi.

I was wondering how to make it so that when I hold down the left mouse button, the camera would stop moving and only the guns would move. How would i do this?

you should be more specific in what you want and currently have

Ok sorry i wasnt being more specific.

So far, i just have a standard fps game similar to the one from the template.

I want to have it so when the left mouse button is held down, instead of firing, I want it to go into this sort of “aiming mode” where the camera won’t move, but the guns are still aiming at where the mouse is moved to, and the camera would move normally if it wasn’t in “aiming mode.”

I don’t really know how to describe it better so I hope this helps.

on your axis event you can have a branch that checks if the left mouse is being held down, if it is then rotate the gun mesh, if it is not just rotate the camera

you would also want to save the default rotation of the gun mesh, so when the player releases the left mouse button the rotation resets to the default position