Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a exception on a tool checker?

Asked by
k5a15 2
6 years ago

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

Or could your guys explain about if v:Is xxx

Thank you!

0
Im very confused. DinozCreates 1070 — 6y
0
I'm confused too, I did not understand the question. yHasteeD 1819 — 6y
0
same here :p theking48989987 2147 — 6y

Answer this question