How do I tween without affecting other values?

I’m trying to rotate a part up by tweening it, but how can I tween the part without affecting the y and z, but also allowing the part to move independently too?

If you want to rotate object without affecting its Y and Z rotation, you have to do it other way than Tweening the current object. One approach is to create temporary NumberValue object, give it default value of the X rotation, and create a tween for its Value, apply callback to tween change listener and change the Object’s X rotation in the callback.

What happens is that NumberValue is gonna be tweened, and you can use the tweened Value to change the Object’s rotation everyframe the tween changes the NumberValue’s Value.