Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local password = "password"
  2. local status, input
  3.  
  4. repeat
  5. write("Password: ")
  6. status, input = pcall(read)
  7. until input == password
  8. if input == "password" then
  9. redstone.setOutput("top",true)
  10. sleep(5)
  11. redstone.setOutput("top",false)
  12. os.shutdown()
  13. else
  14. print("Wrong Password")
  15. os.shutdown()
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement