The door is supposed to only open when the keycard touches, but it's also opening with a player's arm. How do I stop this? Here is the script:
01 | --<tkcmdr>-- |
02 |
03 | local door = script.Parent |
04 | local bool = true |
05 | local bool 2 = true |
06 | local clearance = { |
07 | [ "Omni" ] = true , |
08 | [ "MTF" ] = true , |
09 | [ "L5" ] = true , |
10 | [ "L4" ] = true , |
11 | [ "L3" ] = true , |
12 | [ "L2" ] = true , |
13 | [ "L1" ] = false , |
14 | } |
15 |
Your keycard script doesn't seem to have any problems, and because of that I will assume that the reason you think your keycard is opening to peoples arms is because the keycard is actually bigger than you think. I would suggest resizing the Handle part in the keycard to something smaller than what it is and then giving it another shot.