I already had tried do a player health bar with much forms on my project, but i can't because its showing my infomations but not about the clicked entity.
code_language.skript:
on right click on entity:
if clicked entity is a player:
set {_n} to health of clicked entity
set score "&4&l❤ %{Cache::tag.%clicked entity%}%" below clicked entity to {_n} for player