Detecting if part name is the same as tool

There are 2 issues with the code:

  1. In the last if statement, toolEquipped is an instance and not a string. Make it toolEquipped.Name for it to work.
  2. Your character for loop only checks for parts, not tools. (Basically, it’s a scoping issue. bring the 3rd if check out of the 2nd one to fix it)