Advertisement
zhangfengshan

Zdzz

Feb 11th, 2023 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. local a=game.Players.LocalPlayer.Name;
  2. if a="haobaby_XD"then
  3. local function notify(title,text,time)
  4. game.StarterGui:SetCore("SendNotification", {
  5. Title = title;
  6. Text = text;
  7. Icon = nil;
  8. Duration = time
  9. })
  10. end
  11. local function AntiAFK()
  12. game:GetService('Players').LocalPlayer.Idled:Connect(function()
  13. notify('反挂机', '反挂机已生效', 4)
  14. game:GetService('VirtualUser'):Button2Down(Vector2.new(0, 0), game:GetService('Workspace').CurrentCamera.CFrame);
  15. wait(.325)
  16. game:GetService('VirtualUser'):Button2Up(Vector2.new(0, 0), game:GetService('Workspace').CurrentCamera.CFrame);
  17. end);
  18. end;
  19. AntiAFK();
  20. notify("启动", "成功注入等待加载",10)
  21. notify('反挂机', '反挂机已开启', 4)
  22.  
  23. local function callback(Text)
  24. if Text == "确定" then
  25. local amountoftimes = 0
  26. repeat
  27. getgenv().AutoTeleport = true
  28. --我也没有做这个serverhop脚本,我只是把它放在一个GUI中,这是https://v3rmillion.net/showthread.php?tid=1107863的功劳。
  29. getgenv().DontTeleportTheSameNumber = true
  30. getgenv().CopytoClipboard = true
  31.  
  32. if not game:IsLoaded() then
  33. print("Game is loading waiting...")
  34. repeat
  35. wait()
  36. until game:IsLoaded()
  37. end
  38.  
  39. local maxplayers = math.huge
  40. local serversmaxplayer;
  41. local goodserver;
  42. local gamelink = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"
  43.  
  44. function serversearch()
  45. for _, v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync(gamelink)).data) do
  46. if type(v) == "table" and maxplayers > v.playing then
  47. serversmaxplayer = v.maxPlayers
  48. maxplayers = v.playing
  49. goodserver = v.id
  50. end
  51. end
  52. print("当前正在检查最大玩家数量的服务器:..MaxPlayers.. "")
  53. end
  54.  
  55. function getservers()
  56. serversearch()
  57. for i,v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync(gamelink))) do
  58. if i == "nextPageCursor" then
  59. if gamelink:find("&cursor=") then
  60. local a = gamelink:find("&cursor=")
  61. local b = gamelink:sub(a)
  62. gamelink = gamelink:gsub(b, "")
  63. end
  64. gamelink = gamelink .. "&cursor=" ..v
  65. getservers()
  66. end
  67. end
  68. end
  69.  
  70. getservers()
  71.  
  72. print("All of the servers are searched")
  73. print("Server : " .. goodserver .. " Players : " .. maxplayers .. "/" .. serversmaxplayer .. "")
  74. if CopytoClipboard then
  75. setclipboard(goodserver)
  76. end
  77. if AutoTeleport then
  78. if DontTeleportTheSameNumber then
  79. if #game:GetService("Players"):GetPlayers() - 1 == maxplayers then
  80. return warn("It has same number of players (except you)")
  81. elseif goodserver == game.JobId then
  82. return warn("Your current server is the most empty server atm")
  83. end
  84. end
  85. print("AutoTeleport is enabled. Teleporting to : " .. goodserver)
  86. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, goodserver)
  87. end
  88. amountoftimes = amountoftimes + 1
  89. until amountoftimes == 10
  90.  
  91.  
  92. elseif Text == "取消" then
  93.  
  94. end
  95. end
  96.  
  97. local NotificationBindable = Instance.new("BindableFunction")
  98. NotificationBindable.OnInvoke = callback
  99. --
  100. game.StarterGui:SetCore("SendNotification", {
  101. Title = "haobaby_XD";
  102. Text = "是否加入最小服务器";
  103. Icon = "";
  104. Duration = 50;
  105. Button1 = "确定";
  106. Button2 = "取消";
  107. Callback = NotificationBindable;
  108. })
  109.  
  110. loadstring(game:HttpGet('https://pastebin.com/edit/wfzyGW8f'))()
  111. notify("私人定制脚本", "欢迎"..game.Players.LocalPlayer.Name.." 使用属于 haobaby_XD 子弹追踪",10)
  112. print("可爱的小小张同学呀")
  113. notify('制作组', '小杰瑞', 4)
  114. else
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. game.Players.LocalPlayer:Kick(a.."你干嘛哎呦")
  130. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement