Help With Sword Swinging Montage

I’m trying to make a sword montage that leads into a combo, but I can’t find any good tutorials for attacking montages. I don’t want it to work by just holding the button down, but I also don’t want mashing the button to be a strategy for attacking. I’d like to make it so that the montage will only continue if the attack input is used during a certain time frame. Can anyone help me out?

Let me know if you’ve questions…