How to modify the rotation speed of an object using Transform.Rotate

So i have taken the sample script from unity documentation for object rotation. I am using JS and the 1st script on the page works well for what i would like to do, except the rotation speed is far too slow for what i would like to do. Unity Page: Unity - Scripting API: Transform.Rotate

I tried the 2nd script they offered and played around with changing the variables, but that just changed the direction it rotated in.

Here is the first script that was going too slow. How can i speed up the rotation?

`function Update() {
// Slowly rotate the object around its X axis at 1 degree/second.
transform.Rotate(Vector3.right * Time.deltaTime);

	// ... at the same time as spinning relative to the global 
	// Y axis at the same speed.
	transform.Rotate(Vector3.up * Time.deltaTime, Space.World);
}`

I don’t code javascript - but changing the speed is done by multiplying by some number > 1.0

e.g.

   var speed = 4.0;
    transform.Rotate(Vector3.right * Time.deltaTime * speed);

var speed : float;

function Update()
{
	transform.Rotate(Vector3.right * Time.deltaTime * speed);
}

Should suit your needs:) But next time put your code in proper format (Click the picture with the 0’s and 1’s above your input area)

Here’s how I rotate a planet:

public class Planetside : MonoBehaviour {
   public GameObject GOPlanet;
   private Planet planet = new Planet();
   private float rotationSpeed = -.08f;

   void Start () {
      planet.GenerateNew();
      rotationSpeed = rotationSpeed * 24 / planet.dayLength;	
   }

   void Update () {
      GOPlanet.transform.Rotate(new Vector3(0, rotationSpeed, 0));
   }
}