So I made a brick and when you press it the tool is cloned. The code:

local detect = script.Parent.ClickDetector
local detain = script.Parent.Detain
detect.MouseClick:Connect(function(plr)
	local PlrDetain = script.Parent.Detain:Clone()
	PlrDetain.Parent = plr.Backpack
	
end)

2 comments

0

is this in a normal script?

0

Yes