making an object face the direction its moving

hey everyone, ok so i have a ball that is a child to another ball that rolls around the scene. however this one has a freeze rotation script added as i dont want this ball to roll around, what i do want however is the ball to face the direction its moving.

the script i’m using is as follows
var mySphere : GameObject;

function Update()
      gameObject.transform.position = mySphere.transform.position;
      transform.eulerAngles = Vector3(0, 0, 0);

I don’t know if I understand your question fully, but try this. If this isn’t what you’re looking for, please give some more detail on the issue.

transform.forward = mySphere.transform.forward;