TextButton/ImageButton Modal not affected by ScreenGui.Enabled

The bug: when a TextButton or ImageButton is placed inside a ScreenGui, and the ScreenGui’s Enabled is set to False, the button still forces modal behavior.

This is in contrast to setting Visible to a gui object above the button in Hierarchy, which disables the modal behavior.

Repro:

  1. Create a ScreenGui, a Frame in the ScreenGui, and a TextButton in the Frame. Set the TextButton Modal to True.
  2. Play the game and zoom in. The modal behavior prevents the mouse from being locked in the center
  3. Set the Visible property of the Frame to False. The modal behavior stops. Set the Visible property of the Frame to True. The modal behavior starts.
  4. Set the Enabled property of the ScreenGui to False. The modal behavior continues.

Expected: modal behavior stops when ScreenGui’s Enabled is set False.

2 Likes

Bumping this issue, as I’m also experiencing it. A ui element with modal enabled, directly under a screen gui does not obey the .Enabled property.

@mrow_pizza I couldn’t reply to the original thread, but you stated that this issue was fixed, so idk what happened to it.