I need little help with my code

#pragma strict

private var charecterAnimator : Animator;

function Awake()
{
		charecterAnimator = gameObject.GetComponent("Animaatio");
}
 
function Start () {

}

function Update () {
transform.Translate(Vector2.right * Time.deltaTime);
}

There is my code for automatically moving to right and player animator.

How i can change player movement speed?

You could add a speed variable:

E.G

public var speed : float;

transform.Translate(Vector2.right * Time.deltaTime * speed);

Also line 7 looks like you have a typo: “Animaatio” should be “Animator”