smooth look at script

so i am useing unity script to have the camara follow my object when i move it left or right but, it only moves a couple inches. how can i make this camara get right behind the object when i hit “d” to go right?any help thanks

// This complete script can be attached to a camera to make it
// continuously point at another object.

// The target variable shows up as a property in the inspector.
// Drag another object onto it to make the camera look at it.
var target : Transform;

// Rotate the camera every frame so it keeps looking at the target
function Update() {
transform.LookAt(target);
}

have you tried using the " builtin " camera scripts : SmoothLookAt and SmootFollow ? they are in Standard Assets, they work very well…

thats what im useing SmoothLookAt and SmootFollow but the smoothlookat only moves a couple inches when i try to move left or right

you must to change the damping value of the script, the bigger value, the softer looks at…