i want to display enemy health bar
over enemy grad.
The logic above will only work if you want to display the health bar of the player, it will not work for anything else. If you want to display the health bar of something else, you will need a reference of that something else (e. g. a reference to that enemy) and then use that instead of “GetPlayerCharacter”, since “GetPlayerCharacter” will return a reference to the character that is currently possessed by the player.