Sayomie550

Untitled

Jan 17th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. --[[
  2.     Generator Room Door Lock
  3. --]]
  4. --os.pullEvent = os.pullEventRaw
  5. password = ("open")
  6.  
  7. while true do
  8.     term.clear()
  9.     term.setCursorPos(1,1)
  10.     write("Input Generator Room Door Password: ")
  11.     input = read("*")
  12.     if input == password then
  13.         rs.setOutput(left,true)
  14.         rs.setOutput(top,false)
  15.         sleep(5)
  16.         rs.setOutput(left,false)
  17.     else
  18.         term.clear()
  19.         term.setCursorPos(1,1)
  20.         print("Password Incorrect!")
  21.         rs.setOutput(top,true)
  22.     end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment