Buttons can be clicked when a frame is over that button

Hello, when I create a button and then add a frame over that button, the button can be still clickeable and I dont know what to do to prevent that.

:hearts: If you need something, dont hesitate to tell me! :hearts:

3 Likes

Try setting the frame’s active property to true.

2 Likes

It’s not working, the problem persists, I also made a event on the button that if its clicked it will print “Hello” in the console, and the console printed “Hello” even when the button was over the frame.

3 Likes

What I would do to fix this problem is to set the button’s visible property to false. When the frame is not covering the button, use a script to make the button’s visible property to true.

2 Likes