Can i turn ON/OFF a script using another script

I have a script in which i have my GUI menu screens and there is another script that makes a camera follow my car. I want to turn on and off this car follow script through my GUI menu scripts.
I want to activate my car follow script only when the user presses a button which is created in my GUI script.
Thanks

something like this should do the trick modified
to fit your needs remember to make the variable name the same as the scriptname

var SmoothFollow : SmoothFollow;//script 
 
function OnTriggerEnter(other : Collider) { 
   if (other.CompareTag("Player")) { 


SmoothFollow.enabled = false;


 
     }
}

[/code]

// C# example
public TheNameOfTheOtherScript carScript;

void OnGUI()
{
   carScript.enabled = GUILayout.Toggle( carScript.enabled, "Do it", GUI.skin.GetStyle( "Button" ) );
}

Drag-drop the GameObject with the other script on it to the “Car script” property in the inspector of this script and hit play.

Thank you AngryAnt and Oxygen.
Thanks for your help.

I tried this but it didn’t work. It reveals the var in the inspector, but can’t drag the script (of exact same name) onto it either. (JS version) Tips?

You cant drag the scrip / the component in into the var in the inspector. you can only drag the game object and make a GetComponent<script_name>(); to get the script component.