How to Get the health of the entity you are attacking

Does anyone know how to get the health of the entity you are attacking? i want to make the knockback proportionate to the health

Use bullet callback function or EntityTakeDamage hook

Entity:Health()