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?
COMMUNITY QUESTION
How to check for a tool before executing a script?
1 answer
For i,v in pairs(player.BackPack:GetChildren()) do if v:IsA("Tool") then print("The loop just looped through a tool") end end
This discussion is preserved as it was. New answers, comments, and votes are closed.
