So ive been trying to make a brick that once clicked gives you an object. I have the script set up to go from the Lighting but i want the tool itself to be a Child of the ParentPart and still give it to you.
function hi(x)
local y = x.Backpack
local z = game.Lighting["Gun"]
z:Clone().Parent = y
end
script.Parent.ClickDetector.MouseClick:connect
Please help Anons

1 comment
I'm assuming by ParentPart you mean the part that is getting clicked?