target.gameObject Position

my controller go to target position ?

var controller:CharacterController;
var target:Transform;
var speed:float=0.2;
var direction:Vector3=Vector3.zero;


function Update () {
direction=target.transform.position;
direction=transform.TransformDirection(direction);
direction*=speed;

controller.Move(direction*Time.deltaTime);

}

If you mean that you want to move your controller towards the object located at the target transform, then you need to find the vector from your controller’s position to the target’s position. Like so:

direction = (target.position - transform.position).normalized;
controller.Move(direction * Time.deltaTime * speed);