Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to check for a tool before executing a script?

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?

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.