[Solved]Need support on Camera scripts

Well, im starting my new project with pathfinding. I`m making a game with horizontal camera and got some problems with the cam.

The main problem is i can`t make the Camera follow the character as i click on the game. Maybe bcoz of lots of Javascripts already on it.

How can i make the Camera follow the X and Y axis of the Char?

Here is a picture of my scene.

Anyone know? I need some orientation please.

Can you give us a bit more to go on? What code have you tried so far, and what is going wrong with it? When you say the camera won’t follow the character as you click on the game, what exactly is the clicking supposed to do?

Thanks for helping, but i just got the code right here that worked as well as i wanted.

var target : Transform; 
var smoothTime = 0.3; 
private var yVelocity = 2.0; 

function Update () 
{ 
	var newPositionX = Mathf.SmoothDamp(transform.position.x, target.position.x, yVelocity, smoothTime); 
	var newPositionZ = Mathf.SmoothDamp(transform.position.z, target.position.z, yVelocity, smoothTime); 
	transform.position.x = newPositionX; 
	transform.position.z = newPositionZ; 
}

Hope it helps someone too as helped me. [ ]'s