Advertisement
Guest User

PLS DONATE || Find Rich Players Script / Hack ||

a guest
Aug 10th, 2022
33,314
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. local minimum = 10000 --minimum amount of robux donated
  2.  
  3. if game.PlaceId ~= 8737602449 then return end
  4.  
  5. if not game.IsLoaded then game.Loaded:Wait() end
  6. --wait(.5)
  7.  
  8. local highestdono = 0
  9. local highestplr = nil
  10.  
  11. --writefile("MinimumDonation.txt",tostring(minimum))
  12.  
  13. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  14. repeat wait() until v:FindFirstChild("leaderstats")
  15. end
  16.  
  17. local function getDonated(plr)
  18. local stats = plr:WaitForChild("leaderstats")
  19. local donated = stats:FindFirstChild("Donated")
  20. if donated == nil then
  21. return 0
  22. end
  23. return donated.Value
  24. end
  25.  
  26. local function shop() -- infinite yield serverhop
  27. local x = {}
  28. 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
  29. if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
  30. x[#x + 1] = v.id
  31. end
  32. end
  33. if #x > 0 then
  34. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
  35. game:GetService("GuiService").UiMessageChanged:Wait()
  36. shop()
  37. else
  38. return error("Couldn't find a server.")
  39. end
  40. end
  41.  
  42. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  43. if i == 1 then continue end
  44. local dono = getDonated(v)
  45. if dono > highestdono then
  46. highestdono = dono
  47. highestplr = v
  48. end
  49. end
  50.  
  51. if highestdono >= minimum then
  52. local richPlayers = {}
  53. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  54. if i == 1 then continue end
  55. if getDonated(v) >= minimum then
  56. table.insert(richPlayers,v)
  57. end
  58. end
  59. game:GetService("StarterGui"):SetCore("SendNotification", {
  60. Title = "Richest player found!",
  61. Text = highestplr.Name .. " has donated " .. highestdono .. "R$",
  62. Duration = 15
  63. })
  64. table.foreach(richPlayers,function(i)
  65. print(richPlayers[i].Name .. " donated " .. tostring(getDonated(richPlayers[i])) .. "R$")
  66. end)
  67. else
  68. shop()
  69.  
  70. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement