Guest User

startup

a guest
Jan 22nd, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. --load configs--
  2. shell.run("cd os")
  3. shell.run("adminconfig")
  4. shell.run("userconfig")
  5.  
  6. --Prep--
  7. shell.run("clear")
  8.  
  9. --Login--
  10. while true do
  11.  if needlogin == true then
  12.  
  13.   write("Username: ")
  14.   input = read()
  15.    if input == Username then
  16.    else
  17.    print("No User Under That Username")
  18.    sleep(2)
  19.    os.reboot()
  20.   end
  21.  
  22.   write("Password: ")
  23.   input = read("*")
  24.   if input == Password then
  25.    shell.run("desktop")
  26.    break
  27.    else
  28.    os.shutdown()
  29.   end
  30.  
  31.   else
  32.   shell.run("desktop")
  33.   break
  34.  end
  35. end
Add Comment
Please, Sign In to add comment