I Made a box tool and i want that when i click it destroys and gives me another tool that i made I tried this: local Tool = script.Parent
Tool.Equipped:connect(function(Mouse)
Mouse.Button1Down:connect(function()
local Tool = script.Parent;
local Plr = game.Players.LocalPlayer
local Used = false
Tool.Activated:connect(function()
if not Used then
Used = true
script.Parent.Parent.Cart:Clone().Parent = Plr.Backpack -- Cart is the other tool
end
Tool:Destroy()
end
end)
end)
end)

3 comments
Please be more descriptive; what line(s) show the error, did the full code not work, is there any output?
it basically doesnt show a error it just doesnt work
so full code basically not working