Fabrimat

Turtle Program

Feb 4th, 2015 (edited)
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. oldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. while true do
  4.         term.clear()
  5.         term.setCursorPos(1,1)
  6.         print("Fabrimat Computer Security 1.1")
  7.         print("UserName: USERNAME")
  8.         write("Password: ")
  9.         if read("*") == "PASSWORD" then
  10.                 print("Access Granted.")
  11.                 sleep(2)
  12.                 term.clear()
  13.                 term.setCursorPos(1,1)
  14.         print("Fabrimat Computer System")
  15.                 break
  16.         else
  17.                 print ("Incorrect Login Details.")
  18.                 sleep(1)
  19.         end
  20. end
  21. os.pullEvent = oldPull
Advertisement
Add Comment
Please, Sign In to add comment