enabled Problem with turn off a script

problem I want to turn off a script when I press the spacebar this is what I have so far:

function update(){
 whiteScript = GetComponent(whiteholeContorll);
        whiteScript.enabled = false;


I don't get any error message but it dosent work. So do you gut Have and idea what im doing wrong.

A function called "update" won't run unless you specifically call it. If you use "Update" instead, then it will work.