Advertisement
__Tyler__

Roblox Username Grabber

Sep 12th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var UserID = prompt("Enter start id");
  2. var SearchCount = prompt("Enter number of searches to make");
  3. var check = "Created by Scripted on Vermillion";
  4. parseInt(SearchCount);
  5. parseInt(UserID);
  6. var Names = []
  7. function GetUsername(){
  8. $.get(
  9.     "http://www.roblox.com/users/"+UserID+"/profile",function(data) {
  10.     var x = $( data ).find( "cite" );
  11.     var i;
  12.     for (i = 0; i < x.length; i++) {
  13.                 Names.push(x[i].innerHTML);
  14.                 i = x.length;
  15.              
  16.     }
  17.     }
  18. );
  19. }
  20. function LogNames(){
  21.     for (var i = 0; i < Names.length; i++) {
  22.         check = check + "\r\n "+  Names[i];
  23.     }
  24. }
  25. function Loop(){
  26.     setTimeout(function(){
  27.         if( SearchCount >  0){
  28.             GetUsername();
  29.             SearchCount--;
  30.             UserID++;
  31.             Loop();
  32.         }else{
  33.             LogNames();
  34.             console.warn(check);
  35.         }
  36.     },350)
  37. }Loop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement