Help disabling UI

Hello everyone,

This sounds simple but I’ve not seen anything helpful on the forums - how do I make a player unable to interact with a UI?

For context, I have a UI panel that I want the player to be unable to use when an action is pending:

image

However, if the loading screen is even slightly translucent, the player can interact with the UI buttons and text boxes underneath.

How do I make the loading screen ‘cover up’ the panel underneath or disable the panel entirely? Any support is appreciated. Thanks!

1 Like

Buttons (and many GUI objects) have a boolean attribute called “Selectable”. If you enable it, you can interact with it, and vise versa. When the loading screen is up, just disable that attribute on the buttons below it.

GuiObject.Selectable refers to whether or not the object can be selected with a gamepad, not interacted with.

I should’ve checked the docs first huh, that’s why they created them lol. I apologize. I knew there was an attribute that did that. Looking at the docs, “active” is the attribute that is supposed to do that. When I tested on my GUI, it didn’t sink the input though. Maybe where applicable you can just use this attribute to filter inputs manually?

Have you tried with the zindex property which means the Gui is on top of what’s behind otherwise if not even what ‘sthansen’ is saying isn’t working you will just have to make it opaque and you could tween it in and out.