Hello Friends! Hope you guys understood today's video! Shout outs to @SILO Ghost! Thank you all for almost 100 subscribers! I really appreaciate and love the fact on seeing how far the channel has made it! Thank you all for your support, Have a great day/night!
Baii! ❤
Script:
local pps = game:GetService("ProximityPromptService")
local distance = 10
local timeToHold = 0.5 ------ How long it takes to hold E
pps.PromptTriggered:Connect(function(pp, plr)
local tool = pp.Parent.Parent
if tool:IsA("Tool") then
tool.Parent = plr.Backpack
pp:Destroy()
end
end)
while wait() do
for i, descendant in pairs(workspace:GetDescendants()) do
if descendant:IsA("Tool") and descendant:FindFirstChild("Handle") and not game.Players:GetPlayerFromCharacter(descendant.Parent) then
if descendant.Handle:FindFirstChild("TouchInterest") then descendant.Handle.TouchInterest:Destroy() end
local pp = descendant.Handle:FindFirstChild("ProximityPrompt")
if not pp then
pp = Instance.new("ProximityPrompt")
pp.MaxActivationDistance = distance