how do i toggle widget on and off and also mouse functionality

how do i toggle a widget on and off and stop the character from moving while using the mouse. and then toggle back movement when the widget is removed from the screen?

this will stop the character you can build a function to toggle it on and off

works for me with my toggle inventory it stops me when i toggle it on and then when i close inventory i get movement back

I think you are looking for these nodes.