N0t_k3v1n

Proximity prompt script

Nov 9th, 2022
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | Gaming | 0 0
  1. local toolname = script.Parent.Parent.Parent
  2. local proximityprompt = script.Parent
  3. local handle = script.Parent.Parent
  4.  
  5. if toolname: FindFirstChild("TouchInerest", true) then
  6.  toolname: FindFirstChild("TouchInterest", true):Destroy()
  7. end
  8.  
  9. proximityprompt.Triggered:Connect(function(player)
  10. local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  11. if humanoid then humanoid:UnequipTools()
  12. end
  13. toolname.Parent = player.Character.proximityprompt:Destroy()
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment