Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local password = "france"
- local cancel = "exitfrance"
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("ANDOS-OS Initialized")
- sleep("1")
- write("Loading your Personal Settings....")
- sleep("1")
- write("System Fully loaded and ready to use.")
- term.clear()
- term.setCursorPos(1,1)
- write("Password: ")
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- else
- print("Password incorrect!")
- sleep(1)
- end
- end
- if input == cancel then
- print("ANDOS-OS Has cancelled the Process 'Startup.exe' because it has become unresponsive")
- sleep("1")
- print("Would you like to Reboot the System?")
- else
- if input == no then
- term.clear()
- term.setCursorPos(1,1)
- shell.exit()
- else
- if input == yes then
- print("ANDOS-OS Is Preparing to Reboot your System.")
- sleep("1")
- print("ANDOS-OS Uninitialized")
- sleep("1")
- os.reboot()
- end
- end
- end
Add Comment
Please, Sign In to add comment