#How to instance tool after holding ProximityPrompt?

16 messages · Page 1 of 1 (latest)

astral bearBOT
#

studio** You are now Level 5! **studio

daring maple
#

are you sure PP.triggered is being called?

#

Why dont you try that

dry raptor
#

use

PP.Triggered:Connect(function()
      -->code here
end)
#

Instead of the if statment

#

statement

daring maple
#

Yep

unkempt sundial
#

Thank you guys

#

Damn, still same, it won't to create item in inventory

dry raptor
# unkempt sundial

manually make the tool and parent it to ReplciatedStorage and then clone it into Player's backpack

unkempt sundial
#

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)