disable/enable script js

I have a MouseLook script and an Attack scrip. I want to disable the MouseLook during the attacks. I looked in the forum but nothing works

function Update()
{
 	if(Input.GetMouseButton(0)){
 		GetComponent(MouseLook).enable = false;
		Slice();
		GetComponent(MouseLook).enable = true;
	}
  }

All I get is: BCE0019: ‘enable’ is not a member of ‘MouseLook’.
Thanks for the help.

The member you are after is enabled.

function Update(){
if(Input.GetMouseButton(0)){
GetComponent(MouseLook).enabled = false;
Slice();
GetComponent(MouseLook).enabled = true;
}
}