How do I add a cooldown timer to skills/inputs?

This doesn’t quite work. I tried using this for a weapon fire rate cool down. Like a rifle that can only fire once every 4 seconds. But when I put 4 it, the actual fire rate is noticeably slower. There is some part of this that causes a long delay that gets worse as the cooldown gets smaller