NO incapaz my question isn't "Too broad". But this time I will be a little more specific anyway. So all I need to know is how I can make it where you can't click a button when a gui is overlapping it. Simple. So, i have a few ideas, I just want to know if there are any better methods I can use. 1) creating another button to counteract the other buttons 2) making everything else invisible 3) making an if statement and "if" my popup is activated they won't do anything when clicked So are there any other ways? If you are still confused, just look at this GIF and you will see what I am talking about: https://gyazo.com/62fd926a823c86c50d073403f2cdbe38
I had this issue once. I hope this works for you. Try setting the other text buttons "Selectable" options to false when something is clicked. Like so,
local Tfirst = script.Parent.TextButton1 local Tsecond = script.Parent.TextButton2 -- The name of the actual text button goes here. local frame = script.Parent.Frame --Assume that the frame covers the entire screen. local debounce = false --These are made up, just assume that these are your buttons. Tfirst.MouseButton1Click:Connect(function) if debounce == false then Tsecond.Selectable = false Tsecond.Visible = false frame.Visible = true wait(0.5) --This wait isn't really needed, but I put it there to give the person some cooldown time to prevent spam. debounce = true elseif debounce == true then Tsecond.Selectable = true Tsecond.Visible = true frame.Visible = false wait(0.5) debounce = false end
Now there are other ways to solving this, but this is my method of doing this. Hopefully it works for you.