I needed to Cut the Code Die() is here
public void TakeDamage(int damageAmount)
{
currentHealth -= damageAmount;
// Check if health is less than or equal to 0
if (currentHealth <= 0)
{
Die();
}
else
{
// Trigger hit animation
anim.SetTrigger("hit"); // Ensure this trigger is correctly set in the Animator
}
}