Advertisement
LaurieGames

Untitled

May 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. term.setCursorPos(1,1)
  2. term.clear()
  3.  
  4. motdepasse = "ovh.com"
  5.  
  6. print("Time for open the door pls")
  7.  
  8. time = read()
  9. time = tonumber(time)
  10.  
  11. print("Please write the password :")
  12.  
  13. text = read("*")
  14.  
  15. if text == (motdepasse) then
  16.  
  17. write("The door is open to "..time.." second(s)")
  18.  
  19. redstone.setOutput("right", true)
  20.  
  21. term.setCursorPos(1,1)
  22. term.clear()
  23. sleep(time)
  24.  
  25. redstone.setOutput("right", false)
  26.  
  27. else
  28.  
  29. write("Error Password failed !")
  30. sleep(3)
  31. write("pastebin run Zw07Ak8T")
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement