object keeps rotation but values are set to zero

I want an object to rotate after pushing buttons, then once buttons released I want the object to not rotate to its original rotation of 0,0,0 but the values to be set to 0,0,0 so that when you start to rotate the object again, it doesn’t rotate weird looking. I also want the axis to reset and everything set to 0,0,0.

You want the object to remain rotated while getting to change the values?

Do you not understand how that doesn’t make sense.

“I want to be stay here, but I want to move there.”

You’re going about this the wrong way… you shouldn’t be figuring out how to make the values go back to 0, while staying rotated. You should be figuring out how to rotate how you want from any starting rotation.

I only stated it that way because I am a 3d modeller and in those programs u can rotate scale move objects however then u freeze transformations and it makes all values zero and keeps how it was orientated so if u were a 3d modeller u would understand how I first thought of it

But yes I want to figure out how to rotate it no matter what orientation te same on screen. So if object was upside down and I wanted to rotate it right it would move left according to object axis, but how do I do it how I want the object to appear rotating on screen.

edit:
but i found the solution myself, was right in front of my face, i rotated in world space and it worked.