Help rotating an object to look towards another

I was wondering if anyone could help me out. I am trying to get an object to turn and look at another. I know its simple i just can’t seem to remember how to get it to work. Thanks in advance!

You need to click the small button that looks like a refresh symbol. It is easy from there!

To make an object look to another, use transform.LookAt. It will turn permantently the object to the target - any target movement will be followed by the first object:

var target: Transform;

function Update(){
  transform.LookAt(target.position);
}

Drag the target object to the Inspector variable target, and the object which have this script attached will be always turned to the target.