How do I make some kinda GUI cooldown?

Like in this video,

first feuture that I want to do,

Second what I have

Just make a cool-down variable then keep checking if the variable is equal to false and if it is then enable the gui. For the variable all you need to do is check when the button is pressed then change the variable to true wait the how much you want the cool-down to be then set it to false again