Currently I’m creating an ability that makes the player move 20% faster and will drain 1 point of energy from the player’s energy bar until it reaches 10. However, when I put a delay in-between the while-loop and set verdant energy it creates an infinite loop and I’m not sure what it is that I’m doing wrong. I want it to drain 1 point of energy per every .5 seconds.