Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CONFIG TO AUTOMATICALLY SERVERHOP
- -- autohop = true / false
- -- add outside of loadstring
- repeat task.wait(1) until game:IsLoaded()
- local TeleportService = game:GetService("TeleportService")
- local HttpService = game:GetService("HttpService")
- function teleport()
- while task.wait(1) do
- notifygui("Teleporting")
- local ServersUrl = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"
- local Server, Next = nil, nil
- local function ListServers(cursor)
- local success, response = pcall(function()
- return game:HttpGet(ServersUrl .. ((cursor and "&cursor=" .. cursor) or ""))
- end)
- if success then
- return HttpService:JSONDecode(response)
- else
- warn("Failed to fetch servers: " .. tostring(response))
- return nil
- end
- end
- while Server == nil or Server.playing == nil do
- local Servers = ListServers(Next)
- if Servers and Servers.data and #Servers.data then
- Server = Servers.data[math.random(1, math.floor(#Servers.data / 2))]
- Next = Servers.nextPageCursor
- end
- end
- if Server and Server.playing < Server.maxPlayers and Server.id ~= game.JobId then
- local success, err = pcall(function()
- TeleportService:TeleportToPlaceInstance(game.PlaceId, Server.id, game.Players.LocalPlayer)
- end)
- if not success then
- notifygui("Failed TP")
- end
- else
- notifygui("Failed TP")
- print(Server)
- print(Server.playing)
- end
- end
- end
- local loading = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("loading", 60).loading
- function notifygui(text)
- local playerGui = game.Players.LocalPlayer.PlayerGui
- local screenGui = playerGui:FindFirstChild("NotificationGui")
- if not screenGui then
- loading.Visible = false
- screenGui = Instance.new("ScreenGui")
- screenGui.Name = "NotificationGui"
- screenGui.Parent = playerGui
- local mainFrame = Instance.new("Frame")
- mainFrame.Name = "DragFrame"
- mainFrame.Size = UDim2.new(0, 300, 0, 400)
- mainFrame.Position = UDim2.new(0.1, 0, 0.2, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
- mainFrame.BorderSizePixel = 0
- mainFrame.Active = true
- mainFrame.Draggable = true
- mainFrame.Parent = screenGui
- mainFrame.ZIndex = 101
- local scrollFrame = Instance.new("ScrollingFrame")
- scrollFrame.Name = "NotificationContainer"
- scrollFrame.Size = UDim2.new(1, -10, 1, -60)
- scrollFrame.Position = UDim2.new(0.5, 0, 0, 55)
- scrollFrame.AnchorPoint = Vector2.new(0.5, 0)
- scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- scrollFrame.ScrollBarThickness = 8
- scrollFrame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- scrollFrame.BorderSizePixel = 0
- scrollFrame.Parent = mainFrame
- scrollFrame.ZIndex = 101
- local uiListLayout = Instance.new("UIListLayout")
- uiListLayout.Name = "UIList"
- uiListLayout.Padding = UDim.new(0, 5)
- uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- uiListLayout.Parent = scrollFrame
- local closeGUI = Instance.new("TextButton")
- closeGUI.Name = "CloseGUI"
- closeGUI.Size = UDim2.new(0, 20, 0, 20)
- closeGUI.Position = UDim2.new(0, 10, 0.05, 0)
- closeGUI.BackgroundColor3 = Color3.new(1, 0, 0)
- closeGUI.Text = "X"
- closeGUI.TextColor3 = Color3.new(1, 1, 1)
- closeGUI.TextScaled = true
- closeGUI.Font = Enum.Font.SourceSans
- closeGUI.Parent = mainFrame
- closeGUI.ZIndex = 101
- local TP = Instance.new("TextButton")
- TP.Name = "TP"
- TP.Size = UDim2.new(0, 150, 0, 20)
- TP.Position = UDim2.new(0, 40, 0.05, 0)
- TP.BackgroundColor3 = Color3.new(0, 1, 1)
- TP.Text = "Teleport"
- TP.TextColor3 = Color3.new(1, 1, 1)
- TP.TextScaled = true
- TP.Font = Enum.Font.SourceSans
- TP.Parent = mainFrame
- TP.ZIndex = 101
- closeGUI.MouseButton1Click:Connect(function()
- screenGui:Destroy()
- loading.Visible = true
- end)
- TP.MouseButton1Click:Connect(function()
- teleport()
- end)
- end
- local mainFrame = screenGui:FindFirstChild("DragFrame")
- local scrollFrame = mainFrame:FindFirstChild("NotificationContainer")
- local uiListLayout = scrollFrame:FindFirstChild("UIList")
- local frame = Instance.new("Frame")
- frame.Name = "NotificationFrame"
- frame.Size = UDim2.new(1, -10, 0, 50)
- frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- frame.BorderSizePixel = 0
- frame.Parent = scrollFrame
- frame.ZIndex = 101
- local closeButton = Instance.new("TextButton")
- closeButton.Name = "CloseButton"
- closeButton.Size = UDim2.new(0, 20, 0, 20)
- closeButton.Position = UDim2.new(0, 5, 0.5, -10)
- closeButton.BackgroundColor3 = Color3.new(1, 0, 0)
- closeButton.Text = "X"
- closeButton.TextColor3 = Color3.new(1, 1, 1)
- closeButton.TextScaled = true
- closeButton.Font = Enum.Font.SourceSans
- closeButton.Parent = frame
- closeButton.ZIndex = 101
- local textLabel = Instance.new("TextLabel")
- textLabel.Name = "NotificationText"
- textLabel.Size = UDim2.new(1, -30, 1, 0)
- textLabel.Position = UDim2.new(0, 30, 0, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.Text = text
- textLabel.TextColor3 = Color3.new(1, 1, 1)
- textLabel.TextScaled = true
- textLabel.Font = Enum.Font.SourceSans
- textLabel.Parent = frame
- textLabel.ZIndex = 101
- closeButton.MouseButton1Click:Connect(function()
- frame:Destroy()
- end)
- scrollFrame.CanvasSize = UDim2.new(0, 0, 0, uiListLayout.AbsoluteContentSize.Y)
- end
- local event = game:GetService("ReplicatedStorage").world.event
- local weather = game:GetService("ReplicatedStorage").world.weather
- local luck = game:GetService("ReplicatedStorage").world.luck_ServerSide
- local notified = false
- if event.Value ~= "None" then
- notifygui("Event: " .. event.Value)
- notified = true
- end
- if weather.Value == "Aurora Borealis" then
- notifygui("Aurora Borealis")
- notified = true
- end
- if luck.Value > 1 then
- notifygui("Luck: x" .. luck.Value)
- notified = true
- end
- if notified == false then
- notifygui("Nothing")
- if autohop then teleport() end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement