Advertisement
CryptekCoding

SimpleLock

Mar 30th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --[[ Simplelock: ]]--
  2.  
  3. os.pullEvent = os.pullEventRaw
  4. local done = false
  5. while done == false do
  6.   write("Password:")
  7.   local password = read()
  8.   term.clear()
  9.   term.setCursorPos(1,1)
  10.  
  11. --[[ USE AT RISK ]]--
  12.   if password == "1955330244" then
  13.     done = true
  14. --[[ USE AT RISK ]]--
  15.   elseif password == "Cryptek" then
  16.           print("Access Granted")
  17.           redstone.setOutput("left",true)
  18.           sleep(5)
  19.           redstone.setOutput("left",false)
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement