Advertisement
Guest User

Untitled

a guest
Jun 28th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. local start = tick()
  2. local beginCounter = 0
  3. local counter = 0
  4. local stop = false
  5. while not stop and tick() - start < 60 do
  6.     print(beginCounter, counter)
  7.     for i = 1, 10 do
  8.         coroutine.wrap(function()
  9.             local success, message = pcall(function()
  10.                 beginCounter = beginCounter + 1
  11.                 game:GetService("GroupService"):GetGroupsAsync(9546145 + beginCounter)
  12.             end)
  13.             counter = counter + 1
  14.             if not success then
  15.                 if message:find("500 InternalServerError") then
  16.                     beginCounter = beginCounter - 1
  17.                     counter = counter - 1
  18.                 else
  19.                     warn("Errored on "..counter..": "..tostring(message))
  20.                     stop = true
  21.                 end
  22.             end
  23.         end)()
  24.     end
  25.     wait()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement