I ~attempted~ to create a simple script that detects if a certain tool is in the players backpack. However, the script does nothing, and gives no errors in the output. Here is the script:
1 | if game.Players.LocalPlayer.Backpack:findFirstChild( "Sword1" ) then |
2 | print ( "Test" ) |
3 | end |
Try placing the code in a LocalScript and placeing that in the StarterPlayerScripts. It needs to be in a LocalScript to use "LocalPlayer"