Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local done = false
- while done == false do
- write("Password:")
- local password = read()
- term.clear()
- term.setCursorPos(1, 1)_
- if password == "thing" then
- done = true
- elseif password == "thing2" then
- print("Access Granted")
- redstone.setOutput("right", true)
- sleep(5)
- redstone.setOutput("right", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment