hi, im trying to make my own simple sword combat system, but ive suddenly ran into one issue.
i have buttons that allow you to change which sword you spawn with, which grabs the selected sword type’s tool from replicated storage and clones it, parenting it to the players backpack.
this code is in a script in startergui under a screengui and frame, it gets the swords folder from replicated storage and then the sword which is inside of the folder

this code is part of the same script as the image above, detecting when the image button is clicked and cloning the sword from replicated storage, then putting it into the players backpack
the sword is given to the player correctly, but then the sword’s remote event isnt firing, meaning the player that it hits isnt going to take any damage.
this is the code inside of the server script thats inside of the tool, it is the main problem i am having as the server event inside of it isnt firing when it supposedly should be
this is the code inside of the tools local script, it detects when the hitbox part of the sword is touched by a player and plays a sound, prints a message and tries to fire off to the server script mentioned before so the hit player takes damage. the remote event isnt printing or firing properly for some reason
this is the sword inside of the folder inside of replicated storage

ive tried to move the location of the sword tools folder and the tool itself, not having any luck. ive also tried to see if anyone has had any similar problems, but i couldnt find anything.
help would be greatly appreciated




