Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = script.Parent
- local handle = script.Parent.Handle
- if tool.Parent == workspace then
- local proxprompt = Instance.new("ProximityPrompt")
- proxprompt.Parent = handle
- proxprompt.KeyboardKeyCode = Enum.KeyCode.E -- Можно заменить букву
- proxprompt.ActionText = "Взять"
- proxprompt.HoldDuration = .5
- proxprompt.Triggered:Connect(function(Plr)
- local backpack = Plr:WaitForChild("Backpack")
- tool.Parent = backpack
- proxprompt:Destroy()
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement