What I'm trying to do is make a card access door, which when you touch your card against the scanner, it checks a value inside the card and if it is in "access" it unlocks a door.
local access = {
001,
}
script.Parent.Touched:connect(function(part)
if part.Parent:FindFirstChild("CardNumber") ~= nil then
if access[part.Parent.CardNumber.Value] then
local door = script.Parent.Parent.Parent.Door:GetChildren()
script.Parent.Parent.Card.Transparency = 0
script.Parent.Parent.Card.DecalA.Transparency = 0
script.Parent.Parent.Card.Decal.Transparency = 0
for i,v in pairs(door) do
v.CanCollide = false
end
wait(3)
script.Parent.Parent.Card.Transparency = 1
script.Parent.Parent.Card.DecalA.Transparency = 1
script.Parent.Parent.Card.Decal.Transparency = 1
for i,v in pairs(door) do
v.CanCollide = true
end
end
end
end)
There are no errors nor output.

4 comments
to search if one of the numbers in the table is in the card, you need to use a loop to search the whole table
you:"There are no errors nor output." me:"ever think to use print?"
I agree^
^ Well normally there'd be output, just saying...