Having trouble rotating

I’m completely new to dynamic components. I want to create a simple elevation function to a model. I’ve managed to set the axis, and have it move to the correct angle when it’s clicked apon. But it doesn’t return to the original position when clicked again.

pretty sure I’m doing the coding wrong, but I’m unable to find any simple tutorials that can actually explain it to me in a way I can understand.

Thanks all for any help.

wait. I think I got it.

Thanks anyhoo.

I’m sure I’ll be back…