COOLDOWN

I am trying to make an item that when clicked, gives the levitation effect. However, I want the item to have a cooldown aswell, so that you cant just fly into the air whenever you feel like it. I have tried various methods to achieve this, but they all have some sort of flaw, whether that be being able to continue holding the use button down even when the cooldown is active (goat horns) or it not being a proper cooldown, and just an antispam solution. If anyone has any way of creating a proper cooldown system, please let me know, whether it be with components or scoreboards, anything will help.

Continue to help post