Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- password = 'password'
- term.clear()
- term.setCursorPos(1,1)
- term.setTextSize(1)
- term.write('Password: ')
- input = read("*")
- function reset()
- term.clear()
- os.reboot()
- end
- if input = password then
- term.setTextColor(colors.green)
- term.write('Access Granted! Enjoy')
- redstoneOuput('right', true)
- sleep(3)
- redstoneOutput('right', false)
- sleep(1)
- reset()
- else
- term.setTextColor(colors.red)
- term.write("Access Denied! Goodbye")
- term.setTextColor(colors.white)
- sleep(3)
- reset()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement