how to make player attack an enemy

can anyone show me how to make my character attack an enemy and deal a set amount of damage? the game link is here: ( don’t mind the sprite, it’s just a placeholder.)

I have the same question so if you find out or someone tells you please inform me!

There are a few examples you can try in the Flowlabs help section.
Example lists:

Sword attack 2: