Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local a=game.Players.LocalPlayer.Name;
- if a="haobaby_XD"then
- local function notify(title,text,time)
- game.StarterGui:SetCore("SendNotification", {
- Title = title;
- Text = text;
- Icon = nil;
- Duration = time
- })
- end
- local function AntiAFK()
- game:GetService('Players').LocalPlayer.Idled:Connect(function()
- notify('反挂机', '反挂机已生效', 4)
- game:GetService('VirtualUser'):Button2Down(Vector2.new(0, 0), game:GetService('Workspace').CurrentCamera.CFrame);
- wait(.325)
- game:GetService('VirtualUser'):Button2Up(Vector2.new(0, 0), game:GetService('Workspace').CurrentCamera.CFrame);
- end);
- end;
- AntiAFK();
- notify("启动", "成功注入等待加载",10)
- notify('反挂机', '反挂机已开启', 4)
- local function callback(Text)
- if Text == "确定" then
- local amountoftimes = 0
- repeat
- getgenv().AutoTeleport = true
- --我也没有做这个serverhop脚本,我只是把它放在一个GUI中,这是https://v3rmillion.net/showthread.php?tid=1107863的功劳。
- getgenv().DontTeleportTheSameNumber = true
- getgenv().CopytoClipboard = true
- if not game:IsLoaded() then
- print("Game is loading waiting...")
- repeat
- wait()
- until game:IsLoaded()
- end
- local maxplayers = math.huge
- local serversmaxplayer;
- local goodserver;
- local gamelink = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"
- function serversearch()
- for _, v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync(gamelink)).data) do
- if type(v) == "table" and maxplayers > v.playing then
- serversmaxplayer = v.maxPlayers
- maxplayers = v.playing
- goodserver = v.id
- end
- end
- print("当前正在检查最大玩家数量的服务器:..MaxPlayers.. "")
- end
- function getservers()
- serversearch()
- for i,v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync(gamelink))) do
- if i == "nextPageCursor" then
- if gamelink:find("&cursor=") then
- local a = gamelink:find("&cursor=")
- local b = gamelink:sub(a)
- gamelink = gamelink:gsub(b, "")
- end
- gamelink = gamelink .. "&cursor=" ..v
- getservers()
- end
- end
- end
- getservers()
- print("All of the servers are searched")
- print("Server : " .. goodserver .. " Players : " .. maxplayers .. "/" .. serversmaxplayer .. "")
- if CopytoClipboard then
- setclipboard(goodserver)
- end
- if AutoTeleport then
- if DontTeleportTheSameNumber then
- if #game:GetService("Players"):GetPlayers() - 1 == maxplayers then
- return warn("It has same number of players (except you)")
- elseif goodserver == game.JobId then
- return warn("Your current server is the most empty server atm")
- end
- end
- print("AutoTeleport is enabled. Teleporting to : " .. goodserver)
- game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, goodserver)
- end
- amountoftimes = amountoftimes + 1
- until amountoftimes == 10
- elseif Text == "取消" then
- end
- end
- local NotificationBindable = Instance.new("BindableFunction")
- NotificationBindable.OnInvoke = callback
- --
- game.StarterGui:SetCore("SendNotification", {
- Title = "haobaby_XD";
- Text = "是否加入最小服务器";
- Icon = "";
- Duration = 50;
- Button1 = "确定";
- Button2 = "取消";
- Callback = NotificationBindable;
- })
- loadstring(game:HttpGet('https://pastebin.com/edit/wfzyGW8f'))()
- notify("私人定制脚本", "欢迎"..game.Players.LocalPlayer.Name.." 使用属于 haobaby_XD 子弹追踪",10)
- print("可爱的小小张同学呀")
- notify('制作组', '小杰瑞', 4)
- else
- game.Players.LocalPlayer:Kick(a.."你干嘛哎呦")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement