Guest User

Untitled

a guest
May 21st, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. print("+----------------------------------+")
  2. print("|                                  |")
  3. print("|          ATM Machines            |")
  4. print("|                                  |")
  5. print("|     +--------------------+       |")
  6. print("|     | Please put your    |       |")
  7. print("|     | Data Card and      |       |")
  8. print("|     | press Enter        |       |")
  9. print("|     +--------------------+       |")
  10. print("|                                  |")
  11. print("+----------------------------------+")
  12.  
  13. while true do
  14.  local e,p = os.pullEvent()
  15.  if e == "key" then
  16.    local key = p
  17.    if key == 28 then
  18.     rs.setBundledOutput("back",colors.white)
  19.     break
  20.    end
  21.  end
  22. end
  23.  
  24.  
  25. print("\n\nReading...")
  26. while true do
  27.     checkrs = rs.getBundledInput("left")
  28.     ch=rs.getBundledInput("right")
  29.     if checkrs == 2048 then
  30.         print("Access Granted")
  31.         break
  32.     elseif ch == 4096 then
  33.         print("Access Denied / Error")
  34.         break
  35.     end
  36.     sleep(1)
  37. end
Add Comment
Please, Sign In to add comment