I've already made it so when a player clicks on a part they get a tool, but I want to make it so every time they click the part they get the same tool. Right now you can only click on it once and afterwards you can't click to get the tool anymore.
local dirt = script.Parent
local bagOfDirt = game.ReplicatedStorage["Bag of Dirt"]
local decal = dirt.dirty.Decal
dirt.ClickDetector.MouseClick:Connect(function(hit)
if hit then
bagOfDirt:Clone()
bagOfDirt.Parent = hit.Backpack
end
end)

1 comment
can you post the code so i can see what method you're using?