#How to instance tool after holding ProximityPrompt?
16 messages · Page 1 of 1 (latest)
use
PP.Triggered:Connect(function()
-->code here
end)
Instead of the if statment
statement
Yep
manually make the tool and parent it to ReplciatedStorage and then clone it into Player's backpack
Oh okay
Ty
Again same
local PP = script.Parent.ProximityPrompt
local player = game.Players.LocalPlayer
local backpack = player.Backpack
local RS = game.ReplicatedStorage
local item = RS:FindFirstChild("DeliveryBox")
PP.Triggered:Connect(function()
if item then
local cloneItem = item:Clone()
cloneItem.Parent = backpack
cloneItem.Name = "Delivery Box"
end
end)
** You are now Level 5! **