rotate an object after moving it

I have a script that when I press a key, I move the object to a given point (target), after he gets into his place, I need him to turn for example 30 degrees on the x-axis, how easy is this to be done!?

just make an if statement. something like:

if (transform.position == target) {
transform.localEulerAngles = new Vector3(30,0,0);
}

and just put it in your update function. It’ll check every frame to see if your guy is at the target position, and when it is it’ll rotate it.