Advertisement
HelloItsMeScripter

Proximity Prompt Tutorial

Feb 11th, 2021
5,453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local tool = game.Lighting.Weight--Change Weight to your own tool in Lighting
  2. local Attacher = Instance.new("Attachment")
  3. local Proxi = Instance.new("ProximityPrompt")
  4. Attacher.Parent = script.Parent
  5. Proxi.Parent = script.Parent
  6. wait(0.001)
  7. script.Parent.ProximityPrompt.Triggered:Connect(function(Humanoid)
  8.     local Copied = tool:Clone()
  9.     Copied.Parent = Humanoid.Backpack
  10. end)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement