Is there a way to make a button game overlay to have a cooldown before it can be clicked again?

I need to be able to have a game overlay button be clicked and then become disabled for around .5 secs and then have it come back on. If there is a way to do this without wire repeaters, that would be great.

Use triggers being activated and deactivated

Make the overlay deactivate itself. Make the overlay also trigger a trigger with a delay. Make that trigger activate the overlay again.

i have tried doing that, but I need the overlay to only be available in a certain zone. If you click the button and then it gets deactivated, if you step outside that zone, it comes back on.