acesscripts

BGS Infinity 25x Nightmare Egg Server Hop Script

Apr 17th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.17 KB | None | 0 0
  1. -- Services
  2. local TeleportService = game:GetService("TeleportService")
  3. local HttpService = game:GetService("HttpService")
  4. local Players = game:GetService("Players")
  5. local player = Players.LocalPlayer
  6.  
  7. -- GUI Setup
  8. local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  9. gui.Name = "ServerHopGUI"
  10.  
  11. local frame = Instance.new("Frame", gui)
  12. frame.Size = UDim2.new(0, 250, 0, 150)
  13. frame.Position = UDim2.new(0.5, -125, 0.5, -75)
  14. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  15.  
  16. local hopBtn = Instance.new("TextButton", frame)
  17. hopBtn.Size = UDim2.new(1, -20, 0, 50)
  18. hopBtn.Position = UDim2.new(0, 10, 0, 10)
  19. hopBtn.Text = "🔁 Server Hop to 25x Nightmare"
  20. hopBtn.BackgroundColor3 = Color3.fromRGB(80, 80, 255)
  21. hopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  22.  
  23. local stopBtn = Instance.new("TextButton", frame)
  24. stopBtn.Size = UDim2.new(1, -20, 0, 40)
  25. stopBtn.Position = UDim2.new(0, 10, 0, 70)
  26. stopBtn.Text = "⛔ Stop Hopping"
  27. stopBtn.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
  28. stopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  29.  
  30. -- Variables
  31. local running = false
  32. local placeId = game.PlaceId
  33.  
  34. -- Function to check if a server contains the 25x Nightmare Egg
  35. local function has25xNightmareEgg(server)
  36.     -- Implement your logic here to check server data
  37.     -- For example, check if a specific variable or object exists in the server
  38.     return true  -- Placeholder: Replace with actual condition
  39. end
  40.  
  41. -- Server Hop Function
  42. local function hopToServer()
  43.     running = true
  44.     while running do
  45.         local servers = HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/" .. placeId .. "/servers/Public?sortOrder=Asc&limit=100"))
  46.         for _, server in pairs(servers.data) do
  47.             if server.playing < server.maxPlayers and has25xNightmareEgg(server) then
  48.                 TeleportService:TeleportToPlaceInstance(placeId, server.id, player)
  49.                 return
  50.             end
  51.         end
  52.         wait(3)
  53.     end
  54. end
  55.  
  56. -- Button Events
  57. hopBtn.MouseButton1Click:Connect(function()
  58.     if not running then
  59.         hopToServer()
  60.     end
  61. end)
  62.  
  63. stopBtn.MouseButton1Click:Connect(function()
  64.     running = false
  65. end)
  66.  
Advertisement
Add Comment
Please, Sign In to add comment