Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "left"
- local Mikepassword = "Golden"
- local Lozopassword = "Trioxide"
- local override = "Chaos Control"
- local opentime = 5
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Welcome to Steele Industries.")
- term.setCursorPos(1,2)
- write("Please enter password to access factory floor.")
- term.setCursorPos(1,3)
- write("Password:")
- local input = read("*")
- if input == Mikepassword then
- term.clear()
- term.setCursorPos(1,1)
- print("Password accepted. Welcome back Founder.")
- rs.setOutput(side,true)
- sleep(opentime)
- rs.setOutput(side,false)
- else
- if input == Lozopassword then
- term.clear()
- term.setCursorPos(1,1)
- print("Password accepted. Welcome back Lozo.")
- rs.setOutput(side,true)
- sleep(opentime)
- rs.setOutput(side,false)
- else
- if input == override then
- term.clear()
- term.setCursorPos(1,1)
- print("Override accepted.")
- rs.getOutput(side)
- if rs.getOutput(side) == false then
- rs.setOutput(side,true)
- sleep(opentime)
- else
- rs.setOutput(side,false)
- sleep(opentime)
- end
- else
- print("Password incorrect.")
- sleep(2)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement