Advertisement
Guest User

startup_backup

a guest
Jul 31st, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local password = "redred"
  3. while true do
  4.  term.clear()
  5.  term.setCursorPos(1,1)
  6.  print("Norton Computer Security 1.1")
  7.  print("UserName: Goldshop")
  8.  write("Password: ")
  9.  local input = read("*")
  10.  if input == password then
  11.   term.clear()
  12.   term.setCursorPos(1,1)
  13.   print("Password correct!")
  14.  else
  15.   print("Password incorrect!")
  16.   sleep(2)
  17.  end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement