Advertisement
Guest User

Untitled

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