how can I rotate an entity according only to one of the "~ ~"?

I want an entity to rotate according to another every tick, but I want it to retain its original x_rotation
Continue to help post