How do i set an object's rotation?

How do i constantly set an object’s rotation?

More stuff to read:

In short, set it’s transform.rotation. But I don’t think it would be sufficient answer, since you seems to trying to learn the basics here. Read this,

Try searching for basic Unity guides maybe, and if something don’t work as you expect, you may ask why attaching your code.