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

I want this door to only open with a keycard, it opens with an arm though. How to fix?

Asked by 8 years ago

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 
03local door = script.Parent
04local bool = true
05local bool2 = true
06local clearance = {
07    ["Omni"] = true,
08    ["MTF"] = true,
09    ["L5"] = true,
10    ["L4"] = true,
11    ["L3"] = true,
12    ["L2"] = true,
13    ["L1"] = false,
14}
15 
View all 66 lines...

1 answer

Log in to vote
1
Answered by
Querq 20
8 years ago
Edited 8 years ago

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.

Ad

Answer this question