Advertisement
jille_Jr

CC: blueflames7's password controll

Sep 30th, 2012
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. print ("Password Lock, By Noah")
  2. sleep(3)
  3. print ("Please put your door on the left side of this device")
  4. sleep(5)
  5. print ("Please enter your password")
  6. name = io.read()
  7.  
  8. if name == "Alienware" then
  9.   redstone.setOutput ("left", true)
  10.   print ("Welcome!")
  11.   sleep(5)
  12.   redstone.setOutput ("left", false)
  13.   os.reboot()
  14. else
  15.   print ("Password Incorrect!")
  16.   os.reboot()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement