Advertisement
Guest User

startup.lua

a guest
Jul 25th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. repeat
  2.     term.clear()
  3.     term.setCursorPos(1,1)
  4.     print("username:")
  5.     username = read()
  6.    
  7.     print("password:")
  8.     password =read("*")
  9.     correct = username == "LinusAuener" and password == "Let_Me_In!"
  10. if not correct then
  11.  print("username or password wrong")
  12.  sleep(1)
  13. end
  14.  
  15. until correct
  16.  
  17. print("Welcome dude")
  18. redstone.setOutput("left",true)
  19. sleep(7) os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement