I have always struggled trying to make a health bar that actually works (I don't know why don't judge me). I decided to try using the pen to make a health bar because I thought it would be easier than making a costume for every frame of the health bar, even though that works to and it can be designed to look nicer than a line
if you remix this for your projects (you most definitely don't have to - there are probably better health systems in better projects) feel free to remove the image of the heart - it will still work -You can change the damage variable to change how much the health variable decreases