Mouse Look On/Off

I was wondering if I could add something to the Mouse Look script in unity so I can turn this function on and off, so like if I press shift then it will turn off the mouse look script and I can click on a gui that just popped up, and when i’m ready to start moving again, just press shift and keep going.

You can enable/disable the ‘mouse look’ component by setting its ‘enabled’ field to the appropriate value. Or, you could implement logic within the script to enable/disable updating of the object’s orientation based on whether some condition is met. (If all you need to do is enable or disable the behavior, the first method would probably be more straightforward.)

how could I go about scripting that? Something to the effect of.
if(Input.GetButton(“Shift”)){

you can change this to a key:

function Update ()
{
	if(Input.GetMouseButton(0))
	{
		GetComponent("SmoothFollow").enabled = false;
		GetComponent("CamControl").enabled = true;
	}
	else
	{
		GetComponent("SmoothFollow").enabled = true;
		GetComponent("CamControl").enabled = false;
	}
}

Just make that its own script or add it to the Mouse Look script?

It would be its own script. (You may need to rearrange the logic a bit if you want the state to toggle when the key is pressed.)