Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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

0
I want to do that but since it's in a billboardGUI it won't fill the screen BronzedMocha 60 — 5y
Ad

Answer this question