Advertisement
JKissa

KissaOS Login

Jan 14th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. --KissaOS - OS
  2. shell.run("clear")
  3. textutils.slowPrint("KissaOS Login")
  4. textutils.slowPrint("Username: ")
  5. user = read()
  6. if user == "user" then
  7. textutils.slowPrint("Password: ")
  8. else
  9. shell.run("clear")
  10. textutils.slowPrint("Access Denied.")
  11. textutils.slowPrint("Computer will reboot in 3 seconds...")
  12. sleep(3)
  13. os.reboot()
  14. end
  15. pass = read("*")
  16. if pass == "pass" then
  17. shell.run("clear")
  18. textutils.slowPrint("Access Granted.")
  19. textutils.slowPrint("Welcome to KissaOS!")
  20. sleep(1)
  21. shell.run("menu")
  22. else
  23. shell.run("clear")
  24. textutils.slowPrint("Access Denied.")
  25. textutils.slowPrint("Computer will reboot in 3 seconds...")
  26. sleep(3)
  27. os.reboot()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement