Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pullEventBackup = os.pullEvent
- os.pullEvent = os.pullEventRaw
- local function reset()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.lightGray)
- print("-- SECURITY TERMINAL A5 --\n")
- term.setTextColor(colors.white)
- print("Please enter password:")
- end
- while true do
- reset()
- local input = read("*")
- if input == "admin" then
- textutils.slowPrint("Access granted.")
- os.pullEvent = pullEventBackup
- redstone.setOutput("back", true)
- sleep(2)
- redstone.setOutput("back", false)
- sleep(10)
- else
- textutils.slowPrint("Access denied.")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement