There's a part in my game's workspace with a proximity prompt inside it, as well as a script.
This script detects when the player fires the proximity prompt and copies a tool in replicated storage and puts it in the local player's backpack, however that does not happen when the proximityprompt is triggered. There's no errors either so I don't know what exactly I got wrong in my script.
local RS = game:GetService("ReplicatedStorage") local Item = RS.AlmondWater local itemPrompt = script.Parent.CanPrompt itemPrompt.Triggered:Connect(function(player) local itemClone = Item:Clone() itemClone.Parent = player.Backpack script.Parent:Destroy() end)
Thank you in advance.