I have a gui that will clone a tool into the player`s backpack when clicked, when the tool clones the tool will be missing scripts wich breaks the entire thing, anyone have a way to fix or rework my system?
-CODE
local player = game.Players.LocalPlayer -- Refer to the Player
local tool = game.Workspace.WP.HK416 -- Refer to the Tool
script.Parent.MouseButton1Down:connect(function() -- When it's clicked
if player:FindFirstChild("Backpack") then -- Not sure why I added this
tool:Clone().Parent = player.Backpack -- Clone the tool to their inventory
end -- End the if function
end) -- End the MouseButton1Down function
Video with problem: Video

4 comments
i dont see any issues that would break the tool
Im going to make a video reporting the issue when i get home
Try using WaitForChild
Your weapon is the one missing the scripts.