Tool Does Not Clone Into Backpack When Clicked

Hello! I’m trying to write a script that puts a cloned part from the ServerStorage into the Player’s backpack, but instead of the tool being cloned, it just puts the tool from inside the ServerStorage into the backpack.

Here is the part of the code related to it:

 local Players = game:GetService("Players")

newclickd.MouseClick:Connect(function(Player)
		local SVST = game:GetService("ServerStorage")
		local Hamburger = SVST.FoodTools.Hamburger
		Hamburger:Clone()
		Hamburger.Parent = game.Players[Player.Name].Backpack
	end)
 local Players = game:GetService("Players")

newclickd.MouseClick:Connect(function(Player)
		local SVST = game:GetService("ServerStorage")
		local Hamburger = SVST.FoodTools.Hamburger
		local ClonedBurger = Hamburger:Clone()
		ClonedBurger.Parent = Player.Backpack
	end)

Thank you so much! Forgot to put it as a variable, I don’t know how I missed that lol

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.