Hidden button still works when pressed

I have a button that is hidden and when i press it, it still works and i dont want that. How can i make it so when i press the button when its visible it works and when i press the button when it is not visible it doesnt work

Capture

Hi, there is a condition that is called ‘Visibility’ and together with your click condition, you can do exactly what you described.

i tried doing that but it woldnt work… any idea why?

Did you add the visibility condition by clicking the Add condition that’s shown in your screen shot? If so, can you screen shot the event?