This might be because of the way I did the attacks. attacking spawns the corresponding sprite in front of you, and that is the attack hitbox. but, if you spam it before it finishes playing, it does not count as two attacks, but one. so you kinda have to space out your attacks