So I'm making this Grill pastries thingy. It works, but when I click on it, it says Burger in the Explorer, but not in backpack(Inventory of the Player)
here is the code
local ClickDetector = script.Parent:WaitForChild("ClickDetector") local Tool = script.Parent ClickDetector.MouseClick:Connect(function(Player) Tool:Clone().Parent = Player:WaitForChild("Backpack") local Grill = game.Workspace.Grill Grill.Touched:Connect(function(hit) if hit.Parent.Name == "Tool" then Tool.Name = "Burger" end end) end)
Make sure the tool doesnt have an icon if you want it to show a name