Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEventOld = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("NOAH LOCKING SYSTEMS")
- print("Please Enter Password")
- term.setCursorPos(1,4)
- input = read("*")
- if input == "password" then
- term.clear()
- term.setCursorPos(1,1)
- print("Password Accepted. Closing in 3...")
- redstone.setOutput("back", true)
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Password Accepted. Closing in 2...")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Password Accepted. Closing in 1...")
- sleep(1)
- redstone.setOutput("back", false)
- elseif input == "root123" then
- term.clear()
- term.setCursorPos(1,1)
- print("ROOT MODE ENABLED")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("BOOTING SHELL.")
- sleep(.3)
- term.clear()
- term.setCursorPos(1,1)
- print("BOOTING SHELL..")
- sleep(.3)
- term.clear()
- term.setCursorPos(1,1)
- print("BOOTING SHELL...")
- sleep(.3)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("shell")
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Incorrect Password")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement