local item = {}
local plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if item == plr.Backpack:WaitForChild("craft") then
script.Parent.Text = "putted!"
item:Destroy()
end
end)
when i click a button it doesn't remove a tool and the text don't change. this was my own made script i tried to make my own so i can make a backpack gui as my own but i tried the first step but i have a hard time for it.

2 comments
Is this a local script?
Yeah