I am making a game where the player holds a sword. i want the sword to move with the animation instead of having the right arm moved up and anchored, so it can move with the animation. my solution was to make the tool, a non-handle tool. i welded the tool to the player's arm every time he equips it. the problem with that is it can't go in a local script, or a script. because you are accessing a body part in a player, which has to be in a local script. and you are also accessing the sword, out of the player's body, which can't be in a local script. i am confused and unsure of what to do. if anyone could help me, it would be heavily appreciated.
You should put it as a normal script. By putting the script in the sword along with the animations.
Use a local script to put player stuff in then a regular script to put the sword stuff in then link them by using a script to contact other things in the other script