Advertisement
maxence01

tm

Mar 19th, 2021
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. redstone.setOutput("left", true)
  4. print("mot de passe ?")
  5.  
  6. txt = read("*")
  7.  
  8.  
  9. if txt == "0000" then
  10.     redstone.setOutput("left", false)
  11.     print("mot de passe : ok")
  12.     os.sleep(5)
  13.     os.reboot()
  14.  
  15.  
  16.  
  17. else
  18.     print("mot de passe : non accepter")
  19.     os.sleep(2)
  20.     shell.run("startup")
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement