Advertisement
Guest User

startup

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