I have a script that causes a tool to be copied from the ReplicatedStorage to the backpack when you click on a brick. In my one world, this one works. However, if I copy it into my own game world, it no longer works. There is also no error displayed in the output. What could that be?
This is the script I used:
local p = game.Players.LocalPlayer local debounce = true script.Parent.MouseClick:Connect(function(p) local Backpack = p.Backpack local Tool = game.ReplicatedStorage.Equipment.BottleDrinks.Cola1 local Clone = Tool:Clone() Clone.Parent = Backpack script.Disabled = true wait(10) script.Disabled = false end)