How to rotate the instantiated object automatically?

I have an object and I have already instantiated it but I want it to roll according to the situation with degrees from 0 to 90 and automatically please I have not left there and I have investigated and nothing.
I already tried Quaternio.Euler (0,90,0) and I will just instantiate with just that rotation and that’s not what I want :frowning:

Try this:

GameObject obj = Instantiate(well, spawnSpot, Quaternion.identity);


obj.rotation = Quaternion.Euler(0, 90, 0);

or if you need local rotation

obj.localRotation = Quaternion.Euler(0, 90, 0);