Can anyone help me with this code? It only clones the tool and not the scripts and stuff inside the tool.
local button = script.Parent
local tool = script.Parent:FindFirstChild("Rifle")
local tool2 = script.Parent:FindFirstChild("Shovel")
local plr = game.Players.LocalPlayer
button.MouseButton1Click:Connect(function()
tool:Clone().Parent = plr.Backpack
tool2:Clone().Parent = plr.Backpack
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Choose.Visible = false
end)
Any help would be appreciated!

1 comment
I added a little bit more to the bottom of the answer, so please take a look at it if you haven't already.