Curvn

ADD EVERYONE!

Dec 12th, 2020 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. local paste = "https://pastebin.com/raw/3RbC1t7n"
  2. if not game:IsLoaded() then game.Loaded:wait() end
  3.  
  4. local rand = Random.new()
  5. local plr = game:GetService("Players").LocalPlayer
  6. local plrs = game:GetService("Players")
  7.  
  8. local function newserver()
  9. syn.queue_on_teleport("loadstring(game:HttpGetAsync(\""..paste.."\"))()")
  10.  
  11. local servers = {}
  12. for _ = 1,100 do
  13. for _ = 1,3 do
  14. local decode = game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100&cursor="))
  15. if decode.nextPageCursor ~= nil then
  16. decode = game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Asc&limit=100&cursor="..decode.nextPageCursor))
  17. for _,server in pairs(decode.data) do
  18. if server.maxPlayers ~= server.playing then
  19. servers[#servers+1] = server.id
  20. end
  21. end
  22. else
  23. for _,server in pairs(decode.data) do
  24. if server.maxPlayers ~= server.playing then
  25. servers[#servers+1] = server.id
  26. end
  27. end
  28. break
  29. end
  30. end
  31. coroutine.wrap(function()
  32. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, servers[rand:NextInteger(1,#servers)], plr)
  33. end)()
  34. wait(6.66)
  35. end
  36. end
  37.  
  38. wait(2)
  39. pcall(function() for i,v in pairs(plrs:GetPlayers()) do plr:RequestFriendship(v) end end)
  40. wait(9)
  41. newserver()
Add Comment
Please, Sign In to add comment