How do I stop overlapped button clicking?

Hey there, I have not seen a single post about this problem, so I thought I would make a thread about it. I have a button and a frame in my main game, but, they sometimes overlap during animations and buttons still trigger. So, I made a dummy game to test this out.

Here are the two buttons without overlapping (look at the output):

If I overlap them with another button, the button does not fire:

But here’s the problem, if I do the same thing, but this time with a frame, it allows clicks through them:

How do I stop overlapped button clicking?

Maybe try putting a transparent text button as a child of the frame? Make sure the text button’s ZIndex is higher than the frame.

Yeah, I was thinking about that, there is no property in Roblox that allows frames to obstruct clicks. I will, instead use buttons as frames where needed.

Yeah, it’s annoying but it shouldn’t effect the game.

1 Like