iOSdeveloper

Untitled

Jun 22nd, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. if not game:IsLoaded() then game.Loaded:Wait() end
  2.  
  3. local http = game:GetService("HttpService")
  4. local tp = game:GetService("TeleportService")
  5. local players = game:GetService("Players")
  6. local lp = players.LocalPlayer
  7. local placeId = game.PlaceId
  8. local jobId = game.JobId
  9.  
  10. local secrets = G_ and G_.Secrets or {
  11. "La Vacca Saturno Saturnita",
  12. "Los Tralaleritos",
  13. "Graipuss Medussi"
  14. }
  15.  
  16. local webhook = G_ and G_.Webhook or "LINK HERE"
  17.  
  18. local renameRadius = 8
  19. local req = http_request or request or (syn and syn.request)
  20.  
  21. local function sendWebhook(msg)
  22. if webhook == "" or not req then return end
  23. pcall(function()
  24. req({
  25. Url = webhook,
  26. Method = "POST",
  27. Headers = {["Content-Type"] = "application/json"},
  28. Body = http:JSONEncode({content = msg})
  29. })
  30. end)
  31. end
  32.  
  33. local function renameModelsInRadius()
  34. local root = lp.Character and lp.Character:FindFirstChild("HumanoidRootPart")
  35. if not root then return end
  36. for _, model in ipairs(workspace:GetChildren()) do
  37. if model:IsA("Model") then
  38. local part = model:FindFirstChild("HumanoidRootPart") or model.PrimaryPart
  39. if part and (part.Position - root.Position).Magnitude <= renameRadius then
  40. model.Name = "ghhhw"
  41. end
  42. end
  43. end
  44. end
  45.  
  46. local function waitForSecrets(timeout)
  47. local start = tick()
  48. while tick() - start < timeout do
  49. for _, name in ipairs(secrets) do
  50. if workspace:FindFirstChild(name) then
  51. return
  52. end
  53. end
  54. task.wait(0.2)
  55. end
  56. end
  57.  
  58. local function hasSecrets()
  59. waitForSecrets(5)
  60. renameModelsInRadius()
  61. local foundMap = {}
  62. for _, name in ipairs(secrets) do
  63. foundMap[name] = 0
  64. end
  65. for _, obj in ipairs(workspace:GetChildren()) do
  66. if foundMap[obj.Name] ~= nil then
  67. foundMap[obj.Name] += 1
  68. end
  69. end
  70. local foundAny = false
  71. for _, name in ipairs(secrets) do
  72. local count = foundMap[name]
  73. if count > 0 then
  74. foundAny = true
  75. local msg = (count == 1) and ("• Found: " .. name) or ("• Found: " .. name .. " ×" .. count)
  76. print(msg)
  77. sendWebhook(msg)
  78. end
  79. end
  80. return foundAny
  81. end
  82.  
  83. local function getServerList()
  84. local ok, res = pcall(function()
  85. local url = string.format("https://games.roblox.com/v1/games/%d/servers/Public?sortOrder=Desc&limit=100&excludeFullGames=true", placeId)
  86. return http:JSONDecode(game:HttpGet(url))
  87. end)
  88. if not ok or not res or not res.data then
  89. return nil
  90. end
  91. local servers = {}
  92. for _, s in ipairs(res.data) do
  93. if s.id ~= jobId and s.playing < s.maxPlayers then
  94. table.insert(servers, s.id)
  95. end
  96. end
  97. return servers
  98. end
  99.  
  100. local retryTeleport = false
  101. tp.TeleportInitFailed:Connect(function(plr, result, msg)
  102. if plr == lp then
  103. retryTeleport = true
  104. end
  105. end)
  106.  
  107. local function serverHopLoop()
  108. if hasSecrets() then return end
  109. while true do
  110. local list = getServerList()
  111. if not list or #list == 0 then
  112. task.wait(3)
  113. else
  114. local target = list[math.random(1, #list)]
  115. retryTeleport = false
  116. tp:TeleportToPlaceInstance(placeId, target, lp)
  117. local t = 0
  118. while t < 5 do
  119. if retryTeleport then break end
  120. task.wait(0.5)
  121. t += 0.5
  122. end
  123. if retryTeleport then
  124. task.wait(3)
  125. else
  126. return
  127. end
  128. end
  129. end
  130. end
  131.  
  132. serverHopLoop()
  133.  
Advertisement
Add Comment
Please, Sign In to add comment