i was trying to face the gun to the mouseposition and my script and error is down below.,i was just trying to rotate the gun to the mousePosition but didn't work this is the error and script..

script

error

and the error is

Use this : Camera.main.ScrrenToWorldPoint(Input.mousePosition);