Talk:Lua Tutorials/@comment-2225136-20120607233253

This "program" of yours doesn't even deserve to be called a program. Heres a better one:

doorside = "left"

password = "passwordhere"

os.pullEvent = os.pullEventRaw

print("enter your password:")

pass = read

if pass == password then

rs.setOutput(doorside, true)

sleep(2)

rs.setOutput(doorside, false)

os.shutdown

else

print("Epic fail :D")

os.shutdown