Talk:Lua Tutorials/@comment-108.64.30.117-20121129004347/@comment-74.74.171.191-20121212132409

Make this your startup file (edit startup)

while true do term.clear term.setCursorPos(1, 1) print("Please Enter Password:") input = read("*") if input == "password" then redstone.setOutput("left", true) sleep(2) redstone.setOutput("left", false) else redstone.setOutput("right", true) sleep(2) redstone.setOutput("right", false) end end

You can change the input == "password" line to whatever you want your password to be. If the password is correct the redstone will output on the left, false and it will output on the right.