Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[-- 4 == redstone io bottom --]]
- function clear()
- term.clear()
- end
- local component = require("component")
- local c = component.redstone
- local pw = "II"
- print("Please enter password (Screen will go blank)")
- component.screen.turnOff()
- asdf = io.read()
- if asdf == pw then
- clear()
- component.screen.TurnOn()
- print("Permission granted")
- c.setOutput(4, 15)
- os.sleep(3)
- c.setOutput(4, 0)
- else
- clear()
- print(asdf .." is not the password.")
- component.screen.turnOn()
Add Comment
Please, Sign In to add comment