Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local opentime = 5 -- Change the 10 how long the door or what ever will stay open
- local side = "right" -- Change to where the door is left, right, front, back, bottom, top
- local password = "water" -- Change Password to what you want your password to be.
- term.clear()
- term.setCursorPos(1,1)
- write("Password: ") -- change this if u wish to have a cutom prompt
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Acces Granted!") -- Change this if you wish to have a custom congratulations
- rs.setOutput(side,true)
- sleep(opentime)
- rs.setOutput(side,false)
- os.reboot()
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Acces Denied!") -- Change this if you wish to have a custom fail message
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement