Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- branding = "Atlas"
- version = "1.0 Alpha"
- lockscreen = "Locked By: ", branding, " OS ", version
- protected = "Your Room,"
- owner = "PortalAtlas."
- print("Locked By: ", branding, " OS ", version)
- correctpassword = "hub"
- correctusername = "porn"
- breakoutpassword = "update"
- local unlock = false
- while unlock == false do
- write("Username: ")
- local username = read()
- term.clear()
- term.setCursorPos(1,1)
- print("Locked By: ", branding, " OS ", version)
- if username == correctusername then
- write("Password: ")
- local password = read()
- term.clear()
- term.setCursorPos(1,1)
- print()
- if password == correctpassword then
- term.clear()
- term.setCursorPos(1,1)
- write("Validating Credentials")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Credentials Valid")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome to: ", protected, " ", owner)
- -- redstone.setOutput("right", true)
- redstone.setOutput("left", true)
- -- redstone.setOutput("top", true)
- -- redstone.setOutput("bottom", true)
- -- redstone.setOutput("front", true)
- -- redstone.setOutput("back", true)
- sleep(2.5)
- -- redstone.setOutput("right", false)
- redstone.setOutput("left", false)
- -- redstone.setOutput("top", false)
- -- redstone.setOutput("bottom", false)
- -- redstone.setOutput("front", false)
- -- redstone.setOutput("back", false)
- os.shutdown()
- elseif password == breakoutpassword then
- unlock = true
- else
- term.clear()
- term.setCursorPos()
- print("Incorrect Password")
- sleep(60)
- os.shutdown()
- end
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Invalid Username")
- sleep(5)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement