Advertisement
Guest User

Untitled

a guest
Jan 10th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local function main()
  2. login()
  3. function unlocked()
  4. redstone.setOutput("left", true)
  5. os.execute("sleep " .. tonumber(10))
  6. redstone.setOutput("left", false)
  7. end
  8. function error()
  9. print("fatal crash")
  10. end
  11. function login()
  12. localUsername = "ExQuid"
  13. localPassword = "test"
  14. print("Enter username and password: ")
  15. gottenUserName = io.read()
  16.  
  17. if(gottenUserName == localUserName ) then
  18. unlocked()
  19.  
  20. else error()
  21. end
  22.  
  23. end
  24.  
  25.  
  26.  
  27. end
  28. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement