I can't find if a player has a tool in the character

yes it definitely works, this was a simple solution! thanks anyway! The problem was that I located the player and character outside the function, so the for loop returned “nil”.