Infinite Loop Problem With Draining Energy

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.

The delay is here:

Yup I just figured that out, before checking back here. But, at least I got confirmation!

Hi! You can’t put a delay node in the progress of a whileloop. instead of a whileloop node try this.