Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --All coded by maxderopnl
- term.setBackgroundColor(colors.blue)
- term.clear()
- term.setCursorPos(15,5)
- textutils.slowPrint("Welcome to MyOS 1.0!")
- term.setCursorPos(15,6)
- print("standard password: password")
- term.setCursorPos(15,7)
- print("Please enter your password")
- term.setCursorPos(15,8)
- write("Password: ")
- local input = read()
- if input == "password" then
- term.setCursorPos(15,9)
- print("Correct password")
- sleep(2)
- term.clear()
- term.setCursorPos(15,1)
- print("Welcome to the menu")
- term.setCursorPos(15,2)
- print("1.paint(you need a right monitor!!!)")
- term.setCursorPos(15,3)
- print("2.settings")
- term.setCursorPos(15,4)
- print("3.shell")
- term.setCursorPos(15,5)
- print("-----------------")
- term.setCursorPos(15,6)
- local input = read()
- if input == "1" then
- shell.run("monitor right paint paintfile")
- sleep(2)
- shell.run("myos")
- else if input == "2" then
- shell.run("edit myos")
- sleep(2)
- shell.run("myos")
- else if input == "3" then
- shell.run("shell")
- print("to come back to the os type: myos")
- end
- end
- end
- else
- term.setCursorPos(15,9)
- print("Wrong passcode")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment