I want to make a crafting system in a game by the player clicking on a part and it removes one item and gives you another. But how do I check that a tool is in the players backpack and then execute the script?
For i,v in pairs(player.BackPack:GetChildren()) do
if v:IsA(“Tool”) then
print(“The loop just looped through a tool”)
end
end