Attack help

Hey, i need some help with scripting a attack, for example if you press A
fast 3 times. you will attack like… Left punch Right punch And then a Kick. instead of the same attack all the time. can anyone please give me any tips how to achieve this?