Melee combat with dynamic animations?

hi how did you approach setting up the the swiping of the mouse cheers