Advertisement
fornakter

1

Apr 22nd, 2024
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | Gaming | 0 0
  1. local block = game.Workspace.Part
  2.  
  3. local function touchPart(part)
  4.     local humanoid = part.Parent:FindFirstChild("Humanoid")
  5.     if humanoid then
  6.         game.Players.PlayerAdded:Connect(function(player)
  7.             print('pistol start')
  8.             player.Backpack.ChildAdded:Connect(function(item)
  9.                 if item.Name == "Pistol" then
  10.                     print("You have pistol")
  11.                 else print('Dont have')
  12.                 end
  13.  
  14.             end)
  15.             print('pistol end')
  16.         end)
  17.         print("Test")
  18.         wait(1)
  19.     end
  20. end
  21.  
  22. block.Touched:Connect(touchPart)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement