So I'm making a game with npc's using swords which has a damage script but doesn't actually attack, I have a cancollided shield which can block the damage script for a lil. In the first npc's sword handle, I put this script in the handle.
game.Workspace["Bandit"].Sword.Handle.CanCollide = true
Its works for 1 npc but when I put the same script on the second npc, the npc sword isn't cancollided.

7 comments
And does this need to be a local script? I'm not really experienced with scripting.
Are you copying that exact script into all of the other ones?
Is your script currently a local script?
nope. Just a normal script
the script is INSIDE the handle of the sword, correct? and its duplicated into every handle?
ye the script is inside the handle, and its the same script on the second npc's sword handle.
I now know (or think I know) whats wrong, I'll post my answer as an actual answer in a moment.