I'm trying to make a keycard reader open a door, but now everything that touches it makes the door open! Anyone able to help?
script.Parent.CardReader.Scanner.Touched:Connect(function(hit)
if hit.Parent.Name == "O5 Keycard" or "Class-D Keycard" then
tween:Play()
debouce = true
wait(3.5)
tween2:Play()
debounce = false
end
end)

5 comments
the last debounce line got a bit messed up on the website
Are you trying to make it for only humanoid to touch? Or what?
the 2n line says the tool i want to touch it
Is it a local script?
nope