A Modal Button parented under a ScreenGui which is Enabled = false still acts modally

  • Describe the bug. Describe what is happening when the bug occurs. Describe what you would normally expect to occur.

When a button with Modal = true is parented under a ScreenGui (or any of that ScreenGui’s descendants), and the ScreenGui is set to Enabled = false, it still acts as if it was visible (in other words, the mouse isn’t locked to the center when MouseLock is activated).

On the other hand, if the button is parented to anything other than the ScreenGui (a Frame, for example,) Setting Visible = false on the Frame works as expected.

  • How often does the bug happen (Everytime/sometimes/rarely)? What are the steps that reproduce the bug? Please list them in very high detail. Provide simple example places that exhibit the bug and provide description of what you believe should be the behavior.

To reproduce the bug, create a new place. Insert a ScreenGui into StarterGui, and parent a button with Modal = true under that ScreenGui. Upon entering play solo, disable the ScreenGui, hiding the button, and then lock the mouse. The mouse isn’t locked to the center, even though it should be.

  • Would a screenshot or video help describe it to someone? If so, post one.
2 Likes