Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local httprequest = (syn and syn.request) or (http and http.request) or http_request or (fluxus and fluxus.request) or request
- local knowndevs = {"dantelike", "manilasters", "maya_png", "gamertomsuper", "cowlover4499"}
- local bindable = Instance.new("BindableFunction")
- local HttpService = game:GetService("HttpService")
- local TeleportService = game:GetService("TeleportService")
- function bindable.OnInvoke(response)
- if response == "YESS" then
- if httprequest then
- local servers = {}
- local req = httprequest({Url = string.format("https://games.roblox.com/v1/games/%d/servers/Public?sortOrder=Desc&limit=100&excludeFullGames=true", PlaceId)})
- local body = HttpService:JSONDecode(req.Body)
- if body and body.data then
- for i, v in next, body.data do
- if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.id ~= game.JobId then
- table.insert(servers, 1, v.id)
- end
- end
- end
- if #servers > 0 then
- TeleportService:TeleportToPlaceInstance(game.PlaceId, servers[math.random(1, #servers)], game.Players.LocalPlayer)
- else
- return notify("Serverhop", "Couldn't find a server.")
- end
- else
- notify("Incompatible Exploit", "Your exploit does not support this command (missing request)")
- end
- end
- end
- function notify(user)
- game.StarterGui:SetCore("SendNotification", {
- Title = "POTENTIAL ADMIN!";
- Text = user.. " might be an admin, do you wanna hop servers?";
- Duration = 15;
- Callback = bindable,
- Button1 = "YESS";
- Button2 = "no.";
- })
- end
- game.Players.PlayerAdded:Connect(function(player)
- local checked = false
- if table.find(knowndevs, player.Name) then
- checked = true
- end
- if checked == false then
- if player:WaitForChild("leaderstats").Wins.Value > 1500 then
- notify(player.DisplayName)
- checked = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement