enemy health does not fill bar

hi i have problems whit showing the healt from a ohter object that is not the player.
the health bar of my player works fine,but when i try to make a health bar for an other object it shows the health bar,but it doesn’t fill it . i think my variables are not correctly passing throug.

One thing you could try is having 2 small rectangles over the enemies head, and change their length depending on their health, and have one set to a constant.

Are you setting the default value for the enemy’s health variable to 1.0?