How can I fill a shaped HUD (health/mana) bar with scalar quantity?

It means the character object you are trying to refer to is invalid as it is currently and empty reference. You may need to cast to the player.