Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1, 1)
- write("Enter Password:")
- input = read("*")
- if input == "password" then
- print("Access Granted!")
- sleep(1)
- redstone.setOutput("top", true)
- sleep(3)
- redstone.setOutput("top", true)
- sleep(1)
- os.reboot()
- else
- print("Access Denied!")
- sleep(1)
- print("Shutting Down")
- sleep(1)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement