How to disable a gui node?

image
this code allows me to enable the pause menu but not disable it and I can’t figure out why

Can you try true and false instead of "true" and "false"?

The second argument of gui.set_enabled() takes a boolean, but you are passing a string. If you pass a string I think as a boolean it always evaluates to true no matter what the string contains.

4 Likes

ah yes thank you that’s fixed it

1 Like