On trigger Help?

I have a GameOject with a 3D model inside. in the Game Object i put a Smooth Look At (script) and the target is the camera.
I Put a cube without the mesh, to define the area that I want the gameObject start to look at the camera.
How can i adapt this script below, and where i put it.

function OnTriggerEnter (myTrigger : Collider) {
if(myTrigger.gameObject.name == “box”){
Debug.Log(“Box went through!”);
}
}

Put it on a script attached to the cube. Make sure the cube’s collider is a trigger. Alter the contents of the OnTriggerEnter method to inform the traveling object to do something (i.e. enable the look at script).

Can u help me arrange the script please?

function OnTriggerEnter (other: Collider){
if(other.gameObject.tag == “cu”){
var go:GameObject = other.gameObject;
go.GetComponent(SmoothLookAt).enabled = false;
}}

function OnTriggerEnter (other : Collider){
	if(other.gameObject.tag == "cu"){
		other.gameObject.GetComponent("SmoothLookAt").enabled = false;
	}
}