Lock entire gui for x seconds after button pressed

Hello,

I have a panel with 9 buttons. When one is pressed, I would like to disable interaction for a certain amount of time. I tried setting the interaction property to a variable and change the variable on the onvalue of the buttins and then after use a timeout to change it back, but I cannot get it to work. Any help will be much appreciated. Disabling interaction on all of the 9 buttons or the entire gui is fine.

Thanks in advance,

-Michael

Actually I realized that it does work. But I had to get out of edit mode. Sorry for the noise.