MaxproGlitcher

Servers hop pas tester

Oct 26th, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. local destroyed = false
  2. local httpservice = game:GetService("HttpService")
  3. local tpservice = game:GetService("TeleportService")
  4. local joinfuncs = {}
  5. local serverstorage
  6. request = request or syn.request or http.request or fluxus.request
  7. if getgenv().serverhopgui then
  8. getgenv().serverhopgui:Destroy()
  9. end
  10. getgenv().serverhopgui = Instance.new("ScreenGui")
  11. serverhopgui.Parent = game.CoreGui
  12. local a = serverhopgui.Destroying:Connect(function()
  13. destroyed = true
  14. end)
  15. local mainmainframe = Instance.new("Frame")
  16. mainmainframe.Parent = serverhopgui
  17. mainmainframe.Size = UDim2.new(.15,0,.6,0)
  18. mainmainframe.Position = UDim2.new(.43,0,.175,0)
  19. mainmainframe.Active = true
  20. mainmainframe.Draggable = true
  21. mainmainframe.BackgroundColor3 = Color3.fromRGB(60,60,60)
  22. mainmainframe.BorderColor3 = Color3.fromRGB(255,255,255)
  23. local mainframe = Instance.new("ScrollingFrame")
  24. mainframe.Parent = mainmainframe
  25. mainframe.Size = UDim2.new(1,0,.8,0)
  26. mainframe.Position = UDim2.new(0,0,.2,0)
  27. mainframe.CanvasSize = UDim2.new(0,0,0,10000)
  28. mainframe.BackgroundColor3 = Color3.fromRGB(60,60,60)
  29. mainframe.BorderColor3 = Color3.fromRGB(255,255,255)
  30. mainframe.ScrollBarImageTransparency = 0
  31. local credits = Instance.new("TextLabel")
  32. credits.Parent = mainmainframe
  33. credits.Size = UDim2.new(1,0,.1,0)
  34. credits.BackgroundColor3 = Color3.fromRGB(60,60,60)
  35. credits.BorderColor3 = Color3.fromRGB(255,255,255)
  36. credits.TextColor3 = Color3.fromRGB(255,255,255)
  37. credits.TextScaled = true
  38. credits.Text = [[Server Hopper
  39. this only shows the first 100 servers thats the max sorry]]
  40. local credits2 = Instance.new("TextLabel")
  41. credits2.Parent = mainmainframe
  42. credits2.Size = UDim2.new(1,0,.1,0)
  43. credits2.Position = UDim2.new(0,0,.1,0)
  44. credits2.BackgroundColor3 = Color3.fromRGB(60,60,60)
  45. credits2.BorderColor3 = Color3.fromRGB(255,255,255)
  46. credits2.TextColor3 = Color3.fromRGB(255,255,255)
  47. credits2.TextScaled = true
  48. credits2.Text = "Made By 2AreYouMental110, with some help from infinite yield"
  49. local sort = Instance.new("UIListLayout")
  50. sort.Parent = mainframe
  51. function createserver(serverid,playing,max)
  52. local serverframe = Instance.new("Frame")
  53. serverframe.Parent = mainframe
  54. serverframe.Size = UDim2.new(.95,0,0,50)
  55. serverframe.BackgroundColor3 = Color3.fromRGB(60,60,60)
  56. serverframe.BorderColor3 = Color3.fromRGB(255,255,255)
  57. local joinbutton = Instance.new("TextButton")
  58. joinbutton.Parent = serverframe
  59. joinbutton.Size = UDim2.new(.5,0,.5,0)
  60. joinbutton.Position = UDim2.new(.5,0,0,0)
  61. joinbutton.TextColor3 = Color3.fromRGB(255,255,255)
  62. joinbutton.TextScaled = true
  63. joinbutton.BackgroundColor3 = Color3.fromRGB(0,255,0)
  64. joinbutton.BorderColor3 = Color3.fromRGB(255,255,255)
  65. joinbutton.Text = "Join Server"
  66. table.insert(joinfuncs,joinbutton.MouseButton1Click:Connect(function()
  67. tpservice:TeleportToPlaceInstance(game.PlaceId,serverid,game.Players.LocalPlayer)
  68. end))
  69. local playingtext = Instance.new("TextLabel")
  70. playingtext.Parent = serverframe
  71. playingtext.Size = UDim2.new(.5,0,.5,0)
  72. playingtext.BackgroundColor3 = Color3.fromRGB(60,60,60)
  73. playingtext.BorderColor3 = Color3.fromRGB(255,255,255)
  74. playingtext.TextColor3 = Color3.fromRGB(255,255,255)
  75. playingtext.TextScaled = true
  76. playingtext.Text = "Playing: "..tostring(playing)..max
  77. local idtext = Instance.new("TextLabel")
  78. idtext.Parent = serverframe
  79. idtext.Size = UDim2.new(1,0,.5,0)
  80. idtext.Position = UDim2.new(0,0,.5,0)
  81. idtext.BackgroundColor3 = Color3.fromRGB(60,60,60)
  82. idtext.BorderColor3 = Color3.fromRGB(255,255,255)
  83. idtext.TextColor3 = Color3.fromRGB(255,255,255)
  84. idtext.TextScaled = true
  85. idtext.Text = tostring(serverid)
  86. mainframe.CanvasSize = UDim2.new(0,0,0,(#mainframe:GetChildren()-1)*50)
  87. end
  88. function updatestorage()
  89. serverstorage = httpservice:JSONDecode(game:HttpGet(string.format("https://games.roblox.com/v1/games/%d/servers/Public?sortOrder=Desc&limit=100", game.PlaceId))).data
  90. for i,v in pairs(mainframe:GetChildren()) do
  91. if v:IsA("Frame") then
  92. v:Destroy()
  93. end
  94. end
  95. for i,v in pairs(serverstorage) do
  96. if type(v) == "table" and v.id and v.maxPlayers and v.playing then
  97. if tonumber(v.playing) == tonumber(v.maxPlayers) then
  98. if v.id == game.PlaceId then
  99. createserver(v.id,v.playing," (max + your server)")
  100. else
  101. createserver(v.id,v.playing," (max)")
  102. end
  103. elseif tonumber(v.playing) < tonumber(v.maxPlayers) then
  104. if v.id == game.PlaceId then
  105. createserver(v.id,v.playing," (your server)")
  106. else
  107. createserver(v.id,v.playing,"")
  108. end
  109. end
  110. end
  111. end
  112. end
  113. while destroyed == false do
  114. wait(1)
  115. updatestorage()
  116. end
  117. a:Disconnect()
  118. for i,v in pairs(joinfuncs) do
  119. v:Disconnect()
  120. end
Advertisement
Add Comment
Please, Sign In to add comment