Advertisement
Guest User

startup

a guest
Aug 1st, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. term.setTextColor(2)
  2. shell.run("program2")
  3. os.pullEvent=os.pullEventRaw
  4. term.restore()
  5. textutils.slowPrint("Please provide a password to login to the computer.")
  6. term.setTextColor(2)
  7. input = read("*")
  8.  
  9.   if input == "bdspcc" then
  10.     term.clear()
  11.     term.setCursorPos(1,1)
  12.     textutils.slowPrint("Welcome To The Terminal!")
  13.     sleep(1)
  14.     error()
  15.   else do
  16.     term.setTextColor(16384)
  17.     textutils.slowPrint("Incorect Password")
  18.     textutils.slowPrint("Access Denied")
  19.     sleep(3)
  20.     os.reboot()
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement