How do I play an animation with a cooldown?

I have a cooldown GUI system and I’m trying to make it so that when I press a key, the player does an animation. The problem is that the cooldown system is a server script, and playing animations is something done in local scripts from what I’ve heard. How would I get around this?

For reference, I used this tutorial so the code is very similar. Is there a better way of doing this? Perhaps a way to implement a cooldown system without using a server script?

i recommend you use debounces for that

Is there any way to visualize the debounces using a GUI while still using a local script? If not, how would I go about playing the animation in a server script?