Some of your values are incorrect.
The whole "External Values" section is wrong because you connect them to nil values. You have to connect it to the game, or to another Variable, and in this case you have done neither. It would have to look something like this:
2 | local Values = game.Workspace.Entry.DoorValues |
3 | local DoorStatus = game.Workspace.Entry.DoorValues.Status |
4 | local DoorFault = game.Workspace.Entry.DoorValues.Fault |
5 | local InMotion = game.Workspace.Entry.DoorValues.Moving |
6 | local CodeType = game.Workspace.Entry.DoorValues.C_Type -- [ 0 = No Code, 1 = Keypad, 2 = Number, 3 = Group, 4 = Specific Person/People |
Fix your other values as well, make sure to properly write the hierarchy.
Also, are "Lock" and "Move" audio bits? If not, then :Stop and :Play are useless.
Lastly, your connection line is.. Strange, to say the least. I'm not sure if that is actually a functioning bit of code, as I've never seen something like that, but your connection line should look something like this:
1 | CD 1. MouseButton 1 Down:connect(MoveDoors) |
2 | CD 2. MouseButton 1 Down:connect(MoveDoors) |
Try that, and then let me know what your Output says and what specifically the problem is.