Advertisement
Guest User

startup

a guest
Feb 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. term.clear()
  2. while true do
  3.   local username = ""
  4.   local password = ""
  5.   local side1 = "bottom"
  6.   local side2 = "top"
  7.   term.setCursorPos(1, 2)
  8.   print ("Computercraft Security System Made by MSPVIPBoy")  
  9.   term.setCursorPos(6, 5)
  10.   term.write("Username: ")
  11.   username = read()
  12.   if username ~= "MSPVIPBoy" then
  13.   term.setCursorPos(6,6)
  14.   term.write("Password: ")
  15.   password = read("*")
  16.   if password ~= "connor04" then
  17.   term.setCursorPos(6,8)
  18.   print ("Access Denid")
  19.   rs.setOutput(side1,true)
  20.   sleep(3)
  21.   rs.setOutput(side1,false)
  22.   os.shutdown()
  23.  else
  24.   term.setCursorPos(6,7 )
  25.   print ("Access Granted")
  26.   rs.setOutput(side2,true)
  27.   break
  28.  end
  29. end
  30. end
  31. print(dir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement