Advertisement
deprool

Untitled

Mar 20th, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. local tool = script.Parent
  2. local handle = script.Parent.Handle
  3.  
  4. if tool.Parent == workspace then
  5. local proxprompt = Instance.new("ProximityPrompt")
  6. proxprompt.Parent = handle
  7. proxprompt.KeyboardKeyCode = Enum.KeyCode.E -- Можно заменить букву
  8. proxprompt.ActionText = "Взять"
  9. proxprompt.HoldDuration = .5
  10.  
  11. proxprompt.Triggered:Connect(function(Plr)
  12. local backpack = Plr:WaitForChild("Backpack")
  13. tool.Parent = backpack
  14. proxprompt:Destroy()
  15. end)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement