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?
COMMUNITY QUESTION
How do I get the script to close a GUI after a player clicks anywhere outside of the GUI?
1 answer
Make an invisible GuiButton (TextButton/ImageButton) and add a MouseButton1Click event to the invisible button and make the Gui invisible.
This discussion is preserved as it was. New answers, comments, and votes are closed.

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