Widget showing up without triggering

I am making a zombie game. When the zombie reaches you, a widget will appear and the mouse will show up. Movement will also be disabled. But when I tested this the widget just showed up without showing the mouse or disabling movement or even getting in the trigger box I set up to trigger all this. Help appreciated

I was using version 4.12.

actually don’t worry, I figured out how to fix it.

Actually I figured it out now.