animated sword + script

this is my last hope.
the problem is that i can’t scripting and i have a sword with a animation but i need a script.
the script that i need be is a script that make only the enemy get damage when i click the left mouse button BUT!! the sword must be playing the animation when i click on the left mouse button

please help me you are me last hope
(ps)i’m a dutchman and 13 years old and i can’t good english

I think the best thing to do would be to make a script that plays the animation then have the enemy have a tag called enemy and have the script see that it is the enemy then have it subtract health from his health points.