I've made a script to check player's inventory when they touch the block, but I want to make a exception (Which can make the player can carry a tool named "AccessCard") but I think that I need some help about it.
script.Parent.Touched:connect(function(hit) if debounce == false then debounce = true local char = hit.Parent local player = game.Players:GetPlayerFromCharacter(char) if player ~= nil then for i,v in pairs(char:GetChildren()) do if v:IsA("Tool") then end etalert = true end end for i,v in pairs(player.Backpack:GetChildren()) do if v:IsA("Tool") then uetalert = true end end
if v:Is xxx
Thank you!