Control static mesh rotation

hi All,

Im trying to achieve the rotation control of a staticmesh thru a slider diplayed on the GUI.

I have a Blueprint of my mesh where i added a rotating movement components which makes my object rotating when i press play.

I have GUI widget with the slider who’s displayed on screen when i press play.

So far seems to be pretty straight forward for my brain.

Where im starting to have a brain problem is how i can control the rotating componenent on my staticmesh blue print with the slider displayed my GUI.

Any advice is more than welcomed…updataed…

i managed to make a button control my static mesh rotation but i have no idea to tell the same button to stop rotating the static mesh -

maybe someone have an idea?

ty

Thanks!