How do I add the orientation of another part?

Green has a script that adds Blues orientation, but it just ends spinning because its basically adding an orientation onto green.


I know that is literally what the title says, but what I want is green to be able to move independently, while blue is affecting green while rotating. (I hope that makes sense) Another way to put it is this.

Pretend that blue and red is the input, and green is the output, but I want it so that its just blue is input, green is output. Basically green and red combined.