Advertisement
Stiigma

CC entrance login

May 23rd, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local password = "banana"
  3. while true do
  4. term.clear() -- Clears the screen
  5. term.setCursorPos(1,1) -- Fixes the cursor position
  6. print("Welcome to the Reis Bros LDA. 's HQ ! We will need to authenticate you.")
  7. write("Password: ")
  8. local input = read("*")
  9. if input == password then
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. print("Password correct. Enjoy your stay!")
  13. print("To open the door, run the file 'open', reboot to lock.")
  14. break
  15. else
  16. print("Password incorrect!")
  17. sleep(2)
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement