How to rotate an object into a specified value

So i want to write a script where after passing a specific trigger point the rotation of the player returns to a specified value that I can set. I know the trigger collider and other things but can’t figure out how to set the rotation value back to a specific one.

You said you’d set the rotation value yourself. So i assume we are talking about eulerAngles here. You can set the eulerAngles of any object by writing transform.eulerAngles = yourValue. If you dont want to directly set it, but instead slowly turn to this value, use a coroutine or the Update() loop to slowly Lerp the value from one to the other.

Thanks, man. Figured it out