How Hide, Block, and turn camera on clicking right mouse button?

In CameraMovement function, put a branch in the beginning and use a bool called “CanMoveCamera”
When you press right mouse button, you set the bool to true and when you release, you set the bool to false. This will turn the camera function on and off.