Advertisement
RoScripter

Check For Tool Script

Mar 10th, 2020
4,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local ToolName = "TestTool"
  2.  
  3. game.Players.PlayerAdded:Connect(function(Player)
  4.     Player.CharacterAdded:Connect(function(Character)
  5.         if Player.Backpack:FindFirstChild(ToolName) then
  6.             print("Player has tool in backpack!")
  7.         else
  8.             print("Player does not have tool in backpack!")
  9.         end
  10.     end)
  11.  
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement