Let Character Controller jump.

Hello.
The game I’m working on only requires jumping.
I’m using a character controller to do so.
This is my script:

function Update(){ 
var controller : CharacterController = GetComponent(CharacterController); 
if(Input.GetButton("Jump")){
	if (controller.isGrounded){
		transform.Translate(Vector3.forward * jumpSpeed * Time.deltaTime);
	} 
}

I tried everything, but my player does’t seem that he wants to jump.
Please help me!

You have to handle gravity. What you’re doing is teleporting (Translate) the object up by approximately 0.001 meters for one frame.

var gravity : float = 0.0f;

function Update() {
  gravity += 9.81 * Time.deltaTime;
  if ( controller.isGrounded ) {
    gravity = 0;
    if ( Input.GetButton("Jump") ) {
      gravity = -jumpSpeed;
    }
  }
  controller.Move(movementVector - Vector3.up * gravity);
}