Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Password:")
- input = read("*")
- if input == "COME IN" then
- redstone.setOutput("left", true)
- sleep(2)
- redstone.setOutput("left", false)
- else
- term.setCursorPos(5, 5)
- print("GO AWAY!")
- term.setCursorPos(6, 6)
- print("YOU DO NOT BELONG HERE!")
- end
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment