Umm.I mean, ****I made a local script inside a tool and type this codes.
player = game.Players.LocalPlayer tool = script.Parent tool.Equipped:connect(function(mouse) mouse.KeyDown:connect(function(key) if key == "h" then print("You pressed h") else end end) end)
I am confused with line 9, and i want to put a code in line 9 that can go inside through LocalPlayer's inventory and destroy the tool.. tool's name = tool
please tell me the answer scripting veterans..
Its pretty simple, on line 9 write the following code
player.Backpack:FindFirstChild("tool"):Destroy()
or
tool:Destroy()
the FindFirstChild function basically finds the first child with the name provided.