Well I'm using a progress bar for it and I tried
Sprite.health is less than or equal to 0: Sprite destroy
: Health bar destroy
but that destroys all the health bars
I also tried setting the health of the bar to the health of the sprite and destroy the bar when it's health is zero but that doesn't work either