Guest User

Untitled

a guest
Jan 11th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. password=("Mainworld")
  2. term.clear()
  3. print("What is Mainworld's world name?")
  4. x = read()
  5. term.write("Answer: ")
  6. if password == x
  7. then print("Thats right! door is open!")
  8. rs.setOutput("left", true)
  9. sleep(5)
  10. rs.setOutput("left", false)
  11. term.clear()
  12. os.reboot()
  13.  
  14. else print("No that isnt right")
  15. rs.setOutput("bottom", true)
  16. sleep(5)
  17. rs.setOutput("bottom", false)
  18. term.clear()
  19. os.reboot()
  20. end
Add Comment
Please, Sign In to add comment