So I'm making a menu for my game and to access it you need to left click an object to open it up and click outside of the menu to close it.
But I don't know how to do it.
With the code that I have right now, when I hold down left click the menu stays open but when I let it go it disappears.
(Object I want to click)
(The menu)
So could someone please help me with this