Advertisement
foreverablaze

startup

Apr 15th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3.  
  4. username = {"JWat"}
  5. password = {"2241"}
  6.  
  7. write("Username: ")
  8. user = read()
  9.  
  10. write("Password: ") -- This prevents people from reading the password as you put it in
  11.  
  12. for i=1, #username do
  13.  if user == username and pass == password then
  14.    access = true
  15.  end
  16. end
  17.  
  18. if access == true then
  19. print("Logging in...")
  20. sleep(1)
  21. print("Welcome "..user)
  22. else
  23. print("Incorrect login.")
  24. sleep(2)
  25. os.reboot()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement