How do i add damage with sword

hello it is me so can you guys please tell me how i will i damage some enemy with the sword

thanks a lot if you help

Basic design:
Add a “health” variable to the enemy object
Add a “damage” variable to the sword object
Add a condition to check if the sword object is in collision with enemy object, use the “Trigger Once” modifier, and subtract the Sword.damage from the Enemy.health
Add another condition to check if Enemy.health is at or below zero, then delete the enemy object.

You’ll have to play with GD some more to figure out the specifics