Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- local side = "bottom"--change bottom to the bundeledwire output
- local pass1 = "opendoor1"--Change to door 1's password
- local pass2 = "opendoor2"--Change to door 2's password
- local pass3 = "opendoor3"--Change to door 3's password
- local pass4 = "opendoor4"--Change to door 4's password
- local pass5 = "opendoor5"--Change to door 5's password
- local pass6 = "opendoor6"--Change to door 6's password
- local pass7 = "opendoor7"--Change to door 7's password
- local pass8 = "opendoor8"--Change to door 8's password
- local pass9 = "opendoor9"--Change to door 9's password
- local passwordadmin = "passadmin"--change to admins password
- print("Welcome to Evolution-Labs")
- print("Please Enter a Door password")
- print("=[roomname]=[roomname]=[roomname]=")--Change [roomname] to the name of your room's
- print("=[roomname]=[roomname]=[roomname]=")--Change [roomname] to the name of your room's
- print("=[roomname]=[roomname]=[roomname]=")--Change [roomname] to the name of your room's
- write("Password: ")
- local input = read("*")
- if input == pass1 then
- rs.setBundledOutput(side, colors.red)--change red to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass2 then
- rs.setBundledOutput(side, colors.green)--change green to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass3 then
- rs.setBundledOutput(side, colors.blue)--change blue to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass4 then
- rs.setBundledOutput(side, colors.yellow)--change yellow to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass5 then
- rs.setBundledOutput(side, colors.lime)--change lime to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass6 then
- rs.setBundledOutput(side, colors.white)--change white to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass7 then
- rs.setBundledOutput(side, colors.pink)--change pink to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass8 then
- rs.setBundledOutput(side, colors.black)--change black to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == pass9 then
- rs.setBundledOutput(side, colors.brown)--change brown to your wire color
- sleep(7)
- shell.run ("reboot")
- end
- if input == passwordadmin then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- print("Computer unlocking...")
- print("Please type 'reboot' or 'shutdown' before leaving")
- os.pullEvent(terminate)
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Goodbye!")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment