#Why ReplicatedStorage don't wanna to clone item into inventory after interacting ProximityPrompt?

22 messages · Page 1 of 1 (latest)

low brook
#

local scripts dont work (normally) in Workspace
make a Server Script and try :


local PP = script.Parent.ProximityPrompt
local RS = game.ReplicatedStorage
local item = RS:WaitForChild("DeliveryBox")

PP.Triggered:Connect(function(player)
    local backpack = player.Backpack

    local cloneItem = item:Clone()
    cloneItem.Parent = backpack
    cloneItem.Name = "Box"
end)
narrow mortar
#

theres no part named devlierybox in replictadedstorage

low brook
#

yea

#

and you should store your tools in like ServerStorrage or something

#

where clients cant access them

narrow mortar
#

oh so you cant exploit?

low brook
#

tools support loal scripts,
exploiters can Clone the tools
and if they have local scripts, then they work

tired tendon
low brook
tired tendon
#

No

low brook
#

wait...
you put the script in Server Storrage

#

put the Script in to the ProximityPrompt

#

and make it a Server Script

tired tendon
low brook
#

coppy the code, Create a Script (not a Local Script)
and paste it in there

tired tendon
#

O

low brook
#

and then put that script in to the ProximityPrompt

tired tendon
#

It works!

low brook
#

yey

tired tendon
#

Thank you two