An error using show mouse cursor and set input mode ui only

guys pls check and pls tell me how to fix it

Click on the last word in the error on the right, that is a link, and it will take you to the offending node.

Whatever you think, you are giving that an empty reference. IE, a reference that is not actually pointing at anything.

check the code once

Is there a player at this point? I notice you’re in a widget.

I guess it might also happen if the player is not possessed? ( not sure about that ).

Maybe because I used

Event endplay - destroy(custom function)

Destory - create widget(deadscreen(the name of the widget in which the error happened) - add to viewport

That’ll be it…

You can’t expect to be creating things during a destroy event :wink: