[ANSWERED]set object rotation manually when spawned

How can I set my spawned object set rotation when spawned ?
I cant do transform.Rotate(a,b,c) on boomStars Start() function.
The rotation must be set on its spawner.

                   Instantiate(boomStars,transform.position, transform.rotation = 0);

		Instantiate(boomStars,transform.position, transform.rotation = 45);
		Instantiate(boomStars,transform.position, transform.rotation = 90);
		Instantiate(boomStars,transform.position, transform.rotation = 125);
		Instantiate(boomStars,transform.position, transform.rotation = 180);
		Instantiate(boomStars,transform.position, transform.rotation = 225);
		Instantiate(boomStars,transform.position, transform.rotation = 270);
		Instantiate(boomStars,transform.position, transform.rotation = 315);

‘transform.rotation’ is a Quaternion. You should never try to assign values to any component, plus this is not the way to change a rotation. Assuming you want a rotation around the ‘y’ axis, you would do it this way:

  Instantiate(boomStars,transform.position, Quaternion.Euler(0.0, 45.0, 0.0));