Advertisement
Guest User

startup

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