Advertisement
Daniel555ok

Untitled

Jun 15th, 2020
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. while wait() do
  2. local category = 3 --category id
  3. local wait = 10 --rate limit (seconds)
  4. local link
  5. local anal
  6. if cur ~= nil then
  7. link = "https://catalog.roblox.com/v1/search/items/details?Category="..category.."&MaxPrice=0&Limit=30&Cursor="..cur
  8. wait(wait)
  9. anal = game:service("HttpService"):JSONDecode(game:HttpGet(link))
  10. else
  11. link = "https://catalog.roblox.com/v1/search/items/details?Category="..category.."&MaxPrice=0&Limit=30"
  12. anal = game:service("HttpService"):JSONDecode(game:HttpGet(link))
  13. end
  14. for i = 1, #anal.data do
  15. if game:GetService("MarketplaceService"):PlayerOwnsAsset(game.Players.LocalPlayer, anal.data[i].id) ~= true then
  16. game:GetService("MarketplaceService"):promptPurchase(game.Players.LocalPlayer, anal.data[i].id)
  17. print(i)
  18. wait(1)
  19. repeat
  20. wait()
  21. until game:GetService("CoreGui").PurchasePromptApp.PurchasePromptUI:FindFirstChild("PromptContents") == nil
  22. end
  23. end
  24. cur = tostring(anal.nextPageCursor)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement