i am trying to make it where when an object with the script attached hits the player, it stops for one second, then continues to move forward again, here is the script.
#pragma strict
var speed : float=0.02;
function Start () {
}
function Update () {
transform.Translate(Vector3.forward * speed * Time.deltaTime);
}