Advertisement
Guest User

startup

a guest
Apr 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("SkyNet Security by Professor v1.1")
  4. pass = "secreto"
  5. write ("Senha: ")
  6. input = read()
  7. if input == pass then
  8. print ("Ola novamente, Rafael!")
  9. redstone.setOutput ("right",true)
  10. sleep (3)
  11. redstone.setOutput ("right",false)
  12. os.shutdown()
  13. else
  14. print ("Senha Incorreta, tente novamente.")
  15. sleep (3)
  16. os.reboot()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement