Advertisement
zhangfengshan

srryyds启动器

Feb 17th, 2023 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. local function notify(title,text,time)
  2. game.StarterGui:SetCore("SendNotification", {
  3. Title = title;
  4. Text = text;
  5. Icon = nil;
  6. Duration = time
  7. })
  8. end
  9. local function AntiAFK()
  10. game:GetService('Players').LocalPlayer.Idled:Connect(function()
  11. notify('启动中', '反挂机已生效', 4)
  12. game:GetService('VirtualUser'):Button2Down(Vector2.new(0, 0), game:GetService('Workspace').CurrentCamera.CFrame);
  13. wait(.325)
  14. game:GetService('VirtualUser'):Button2Up(Vector2.new(0, 0), game:GetService('Workspace').CurrentCamera.CFrame);
  15. end);
  16. end;
  17. AntiAFK();
  18. notify("私人定制脚本", "成功启动等待加载",10)
  19. notify('反挂机', '反挂机已开启', 4)
  20.  
  21. local function callback(Text)
  22. if Text == "确定" then
  23. local amountoftimes = 0
  24. repeat
  25. getgenv().AutoTeleport = true --I didnt make this serverhop script either, I just put it together in a gui credit to https://v3rmillion.net/showthread.php?tid=1107863
  26. getgenv().DontTeleportTheSameNumber = true
  27. getgenv().CopytoClipboard = true
  28.  
  29. if not game:IsLoaded() then
  30. print("Game is loading waiting...")
  31. repeat
  32. wait()
  33. until game:IsLoaded()
  34. end
  35.  
  36. local maxplayers = math.huge
  37. local serversmaxplayer;
  38. local goodserver;
  39. local gamelink = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"
  40.  
  41. function serversearch()
  42. for _, v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync(gamelink)).data) do
  43. if type(v) == "table" and maxplayers > v.playing then
  44. serversmaxplayer = v.maxPlayers
  45. maxplayers = v.playing
  46. goodserver = v.id
  47. end
  48. end
  49. print("Currently checking the servers with max this number of players : " .. maxplayers .. "")
  50. end
  51.  
  52. function getservers()
  53. serversearch()
  54. for i,v in pairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync(gamelink))) do
  55. if i == "nextPageCursor" then
  56. if gamelink:find("&cursor=") then
  57. local a = gamelink:find("&cursor=")
  58. local b = gamelink:sub(a)
  59. gamelink = gamelink:gsub(b, "")
  60. end
  61. gamelink = gamelink .. "&cursor=" ..v
  62. getservers()
  63. end
  64. end
  65. end
  66.  
  67. getservers()
  68.  
  69. print("All of the servers are searched")
  70. print("Server : " .. goodserver .. " Players : " .. maxplayers .. "/" .. serversmaxplayer .. "")
  71. if CopytoClipboard then
  72. setclipboard(goodserver)
  73. end
  74. if AutoTeleport then
  75. if DontTeleportTheSameNumber then
  76. if #game:GetService("Players"):GetPlayers() - 1 == maxplayers then
  77. return warn("It has same number of players (except you)")
  78. elseif goodserver == game.JobId then
  79. return warn("Your current server is the most empty server atm")
  80. end
  81. end
  82. print("AutoTeleport is enabled. Teleporting to : " .. goodserver)
  83. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, goodserver)
  84. end
  85. amountoftimes = amountoftimes + 1
  86. until amountoftimes == 10
  87.  
  88.  
  89. elseif Text == "取消" then
  90.  
  91. end
  92. end
  93.  
  94. local NotificationBindable = Instance.new("BindableFunction")
  95. NotificationBindable.OnInvoke = callback
  96. --
  97. game.StarterGui:SetCore("SendNotification", {
  98. Title = "srryyds";
  99. Text = "是否加入最小服务器";
  100. Icon = "";
  101. Duration = 5;
  102. Button1 = "确定";
  103. Button2 = "取消";
  104. Callback = NotificationBindable;
  105. })
  106. loadstring(game:HttpGet('https://raw.githubusercontent.com/Strikehubv2z/StormSKz/main/All_in_one'))()
  107. notify("fl", "欢迎"..game.Players.LocalPlayer.Name.." 使用fl",10)
  108. print("可爱的小小张同学呀")
  109. notify('制作组', '小张同学', 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement