Advertisement
RyanDolan123

Untitled

Mar 1st, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.40 KB | None | 0 0
  1. --User fetcher
  2. --Warning: This will cause output spam
  3. --Warning: Don't leave this unattended for too long, as it will probably crash roblox because roblox uses too much memory
  4. --Created by yours truly, RyanDolan123
  5.  
  6. h = game:GetService("HttpService")
  7. game:GetService("NetworkServer")
  8. h.HttpEnabled = true
  9.  
  10. for i = 1, 10000000 do --start amount = 1, end amount = 10000000
  11.  
  12.     local r = nil
  13.  
  14.     local o,e = ypcall(function()
  15.         r = h:GetAsync("http://api.roblox.com/users/"..i)
  16.     end)
  17.  
  18.     if not o then
  19.         if e:lower():find("limit") then
  20.  
  21.         repeat
  22.             wait()
  23.  
  24.             game:SetMessage("Http request limit reached, waiting... ID: "..i.." ("..tick()..")")
  25.             local o,e = ypcall(function()
  26.                 r = h:GetAsync("http://api.roblox.com/users/"..i)
  27.             end)
  28.             if not o and not e:find("limit") then
  29.                 o = true
  30.                 e = "{}"
  31.             end
  32.  
  33.         until o
  34.  
  35.         elseif e:lower():find("not enabled") then
  36.             game:SetMessage("Waiting for HttpEnabled... ("..tick()..")")
  37.         elseif e:lower():find("only be executed by game server") then
  38.             game:SetMessage("Waiting for NetworkServer... ("..tick()..")")
  39.         elseif e:lower():find("0x1f4") then
  40.             game:SetMessage("User "..i.." doesn't exist")
  41.         else
  42.             game:SetMessage("Unknown error for user ("..tick()..")")
  43.         end
  44.         wait()
  45.     end
  46.  
  47.     if r then
  48.         game:SetMessage("User "..i.." queried")
  49.         Instance.new("Model",Workspace).Name = r
  50.     end
  51.  
  52.     if _G.stop then
  53.         error("Stopping")
  54.     end
  55. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement