Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I get the script to close a GUI after a player clicks anywhere outside of the GUI?

I'm making a shop script where if you click on a mannequin it would return a card UI made from a billboard GUI that would show information on the clothing. Instead of making an X button to close the card, I want anywhere outside of the card to be able to close it. Is there any events that can cause this to happen?

1 answer

Make an invisible GuiButton (TextButton/ImageButton) and add a MouseButton1Click event to the invisible button and make the Gui invisible.

1 comment

0

I want to do that but since it's in a billboardGUI it won't fill the screen

This discussion is preserved as it was. New answers, comments, and votes are closed.