Advertisement
polleser

bumbum

May 21st, 2025 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. -- Get services
  2. local TeleportService = game:GetService("TeleportService")
  3. local Players = game:GetService("Players")
  4.  
  5. -- Configuration
  6. local placeId = 126884695634066
  7. local serverIds = {
  8. "ba331148-f554-472d-9b2d-812686cf1b3f",
  9. "462a376f-f815-482e-b1a4-19619345d8e1",
  10. "9fe5cae7-a892-4eae-bd81-a806a87c338e",
  11. "c4520a24-821a-4f29-98ba-268abc9bd79a",
  12. "9d052bdc-4876-4bdb-8a73-18207583b731",
  13. "52ca97d7-2066-4252-a3ec-df36ca16819f",
  14. "8b9f8f3e-17e4-4cd9-9fed-7fc82e79c14f",
  15. "0bfef57b-7639-47e3-a304-9a61639d84fd",
  16. "0337512b-b48b-43c3-afc0-ef1fad4903b5",
  17. "d2f8ed71-11ed-4f7d-8b47-3fe1f8fbd432",
  18. "21ac55b9-fc2b-44fa-8cd2-b4621bd3563c",
  19. "c0ace8de-1137-4183-8f84-08a4adb9a665",
  20. "9cfae9e6-ba73-44e1-a416-167608bd95c8",
  21. "43121c02-2653-4b28-9c89-528783f5a338",
  22. "718d0b65-98da-454b-aa0f-1495d55f5343",
  23. "0c3946ec-579f-4093-b4a6-3538b5039761",
  24. "adff4684-9b5c-404e-8b20-da4516a61243"
  25. }
  26. local maxRetries = 1000
  27. local retryDelay = 5
  28. local attemptCount = 0
  29. local currentIndex = 1
  30.  
  31. -- Function to handle teleport attempt
  32. local function attemptTeleport()
  33. -- Ensure LocalPlayer exists
  34. local player = Players.LocalPlayer
  35. if not player then
  36. warn("LocalPlayer not found. Waiting...")
  37. return false
  38. end
  39.  
  40. local instanceId = serverIds[currentIndex]
  41. print("Attempting to join server: " .. instanceId)
  42.  
  43. local success, errorMessage = pcall(function()
  44. -- Check if TeleportService is available
  45. if not TeleportService then
  46. error("TeleportService not available")
  47. end
  48. -- Attempt teleport
  49. TeleportService:TeleportToPlaceInstance(placeId, instanceId, player)
  50. end)
  51.  
  52. if success then
  53. print("Teleport initiated successfully to server: " .. instanceId)
  54. return true
  55. else
  56. warn("Failed to join server " .. instanceId .. ": " .. tostring(errorMessage))
  57. return false
  58. end
  59. end
  60.  
  61. -- Main loop
  62. while attemptCount < maxRetries do
  63. -- Check if game is still running
  64. if not game:IsLoaded() then
  65. warn("Game not fully loaded, waiting...")
  66. wait(1)
  67. continue
  68. end
  69.  
  70. -- Attempt teleport
  71. if attemptTeleport() then
  72. break -- Exit on successful teleport
  73. end
  74.  
  75. -- Update indices
  76. currentIndex = (currentIndex % #serverIds) + 1
  77. if currentIndex == 1 then
  78. attemptCount = attemptCount + 1
  79. print("Completed a full cycle, attempt " .. attemptCount .. " of " .. maxRetries)
  80. end
  81.  
  82. -- Check max retries
  83. if attemptCount >= maxRetries then
  84. warn("Max retries reached. Stopping teleport attempts.")
  85. break
  86. end
  87.  
  88. -- Respect Roblox's rate limits
  89. wait(retryDelay)
  90. end
  91.  
  92. -- Fallback if all attempts fail
  93. if attemptCount >= maxRetries then
  94. warn("All teleport attempts failed. Consider checking server IDs or network connection.")
  95. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement