Character's sword swings through other characters and adding collision is not working

i would have included pictures of my code, but epic games wouldnt let me when i created the thread. i fixed my issue, but the new issue is the sword goes through everything and i do not know why