This is a problem I coded it in order for the enemies to be killed it has to enter the hit box of the sword when its active which is about from when the sword goes up to midway through the swing if I remember correctly. In retrospect I should've made the hit box move in with the swing.