Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Services
- local TeleportService = game:GetService("TeleportService")
- local HttpService = game:GetService("HttpService")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- -- GUI Setup
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- gui.Name = "ServerHopGUI"
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(0, 250, 0, 150)
- frame.Position = UDim2.new(0.5, -125, 0.5, -75)
- frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- local hopBtn = Instance.new("TextButton", frame)
- hopBtn.Size = UDim2.new(1, -20, 0, 50)
- hopBtn.Position = UDim2.new(0, 10, 0, 10)
- hopBtn.Text = "🔁 Server Hop to 25x Nightmare"
- hopBtn.BackgroundColor3 = Color3.fromRGB(80, 80, 255)
- hopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- local stopBtn = Instance.new("TextButton", frame)
- stopBtn.Size = UDim2.new(1, -20, 0, 40)
- stopBtn.Position = UDim2.new(0, 10, 0, 70)
- stopBtn.Text = "⛔ Stop Hopping"
- stopBtn.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
- stopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- -- Variables
- local running = false
- local placeId = game.PlaceId
- -- Function to check if a server contains the 25x Nightmare Egg
- local function has25xNightmareEgg(server)
- -- Implement your logic here to check server data
- -- For example, check if a specific variable or object exists in the server
- return true -- Placeholder: Replace with actual condition
- end
- -- Server Hop Function
- local function hopToServer()
- running = true
- while running do
- local servers = HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/" .. placeId .. "/servers/Public?sortOrder=Asc&limit=100"))
- for _, server in pairs(servers.data) do
- if server.playing < server.maxPlayers and has25xNightmareEgg(server) then
- TeleportService:TeleportToPlaceInstance(placeId, server.id, player)
- return
- end
- end
- wait(3)
- end
- end
- -- Button Events
- hopBtn.MouseButton1Click:Connect(function()
- if not running then
- hopToServer()
- end
- end)
- stopBtn.MouseButton1Click:Connect(function()
- running = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment