Guest User

Untitled

a guest
Jan 10th, 2017
41
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. function unlocked()
  3. redstone.setOutput("left", true)
  4. os.execute("sleep " .. tonumber(10))
  5. redstone.setOutput("left", false)
  6. end
  7. function error()
  8. print("fatal crash")
  9. end
  10. function login()
  11. localUsername = "ExQuid"
  12. localPassword = "test"
  13. print("Enter username and password: ")
  14. gottenUsername = io.read()
  15.  
  16. if(gottenUserName == localUserName ) then
  17. unlocked()
  18.  
  19. else error()
  20. end
  21.  
  22. end
  23.  
  24.  
  25. login()
  26. end
  27. main()
Add Comment
Please, Sign In to add comment