Rotating Object

I have an object where It is holding its position which the user changes values of to make the ball go whichever way and how far to go.

But i want to also do rotation.
[basically what this is is what you’d see in a bowling game where you can move the ball back and forth and rotate it on the axis as well]

I can not figure out the proper localRotate information can anyone give me pointers or a info page to help.

It depends on how you move the ball. You could rotate it with transform.Rotate, but the movement should be done based on the World space (ball script):

  function Update(){
      // rotate the object continuously:
      transform.Rotate(360 * Time.deltaTime, 0, 0);
      // move it using the world space:
      var offset = Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
      transform.Translate(offset * speed * Time.deltaTime, Space.World);
  }

But if you must move relative to the local direction, you can child the ball to an empty object: use the parent object to move, and still rotate the ball with transform.Rotate (parent script):

  function Update(){
      var ball: Transform = transform.Find("Ball"); // find the child
      ball.Rotate(360 * Time.deltaTime, 0, 0); // and rotate it continuously
      // move the parent using the world space:
      var offset = Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
      transform.Translate(offset * speed * Time.deltaTime);
  }