GUI Overlapping

  1. What do you want to achieve? I want to make it so if I have another gui on the side or open already, whenever I click on another gui and it pops the stuff inside it like a frame, the other gui goes away and doesn’t appear. https://imgur.com/a/8TRmYvz

  2. What is the issue?

  3. What solutions have you tried so far? Looked it up on YouTube and couldn’t find anything fully related to what I was looking for. I see that other people want to know to fix this aswell on the devforums.

Am not a very good scripter but is there a easy way to fix this or some code I have to do? Am sure these is some kind of code to fix this but I don’t know. Help would be appreciated.

‘NEED HELP’
it is not hard to search it up, all I did was search ‘Roblox how to detect gui overlapping’

._. Couldn’t find what I was really looking for and how I would describe it.