Why does the animation not play only when spam clicking?

So, it starts playing the animation every time you set the bool? Then try a retriggerable delay.