Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tool name not showing in backpack, but does in Explorer?

Asked by 4 years ago
Edited 4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

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)

1 answer

Log in to vote
0
Answered by 4 years ago

Make sure the tool doesnt have an icon if you want it to show a name

Ad

Answer this question