How to make custom melee attacks?

If I had a melee weapon, how would I make 2 different attacks (ex one would be a stab, the 2nd would be a stab)?

You mean animations?