Talk:Lua Tutorials/@comment-66.142.188.23-20120815161118/@comment-66.142.188.23-20120815161544

I dont know why it posted like that- it wasnt like that be4 i hit "post comment...

Let me try again:

os.pullEvent = os.pullEventRaw

password = "captain123"

override = "benisawesome"

function clear

term.clear

term.setCursorPos(1,1)

end

clear

write"Please enter password: "

input = read("*")

if input == password then

clear

print("Welcome!")

sleep(1)

print("door open, please proceed.")

rs.setOutput("left",true)

sleep(3)

rs.setOutput("left",true)

os.shutdown

end

if imput == override then

clear

sleep(1)

print("...")

sleep(1)

clear

print("..")

sleep(1)

clear

print(".")

sleep(1)

clear

print(" ")

sleep(1)

clear

print("...")

sleep(1)

clear

print("..")

sleep(1)

clear

print(".")

sleep(1)

clear

print(" ")

sleep(2)

clear

print ("Yes he is!")

sleep(2)

clear

print("Override accepted.")

rs.setOutput("left",true)

sleep(3)

rs.setOutput("left",false)

os.shutdown

end

else

clear

print("Sorry, Wrong Password")

sleep(3)

os.shutdown