Advertisement
Guest User

Fisch Server Finder

a guest
Dec 24th, 2024
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 KB | None | 0 0
  1. -- CONFIG TO AUTOMATICALLY SERVERHOP
  2.  
  3. -- autohop = true / false
  4.  
  5. -- add outside of loadstring
  6.  
  7. repeat task.wait(1) until game:IsLoaded()
  8.  
  9. local TeleportService = game:GetService("TeleportService")
  10. local HttpService = game:GetService("HttpService")
  11.  
  12. function teleport()
  13. while task.wait(1) do
  14. notifygui("Teleporting")
  15. local ServersUrl = "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100"
  16. local Server, Next = nil, nil
  17.  
  18. local function ListServers(cursor)
  19. local success, response = pcall(function()
  20. return game:HttpGet(ServersUrl .. ((cursor and "&cursor=" .. cursor) or ""))
  21. end)
  22. if success then
  23. return HttpService:JSONDecode(response)
  24. else
  25. warn("Failed to fetch servers: " .. tostring(response))
  26. return nil
  27. end
  28. end
  29.  
  30. while Server == nil or Server.playing == nil do
  31. local Servers = ListServers(Next)
  32. if Servers and Servers.data and #Servers.data then
  33. Server = Servers.data[math.random(1, math.floor(#Servers.data / 2))]
  34. Next = Servers.nextPageCursor
  35. end
  36. end
  37.  
  38. if Server and Server.playing < Server.maxPlayers and Server.id ~= game.JobId then
  39. local success, err = pcall(function()
  40. TeleportService:TeleportToPlaceInstance(game.PlaceId, Server.id, game.Players.LocalPlayer)
  41. end)
  42. if not success then
  43. notifygui("Failed TP")
  44. end
  45. else
  46. notifygui("Failed TP")
  47. print(Server)
  48. print(Server.playing)
  49. end
  50. end
  51. end
  52.  
  53.  
  54. local loading = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("loading", 60).loading
  55. function notifygui(text)
  56. local playerGui = game.Players.LocalPlayer.PlayerGui
  57. local screenGui = playerGui:FindFirstChild("NotificationGui")
  58.  
  59. if not screenGui then
  60. loading.Visible = false
  61. screenGui = Instance.new("ScreenGui")
  62. screenGui.Name = "NotificationGui"
  63. screenGui.Parent = playerGui
  64.  
  65. local mainFrame = Instance.new("Frame")
  66. mainFrame.Name = "DragFrame"
  67. mainFrame.Size = UDim2.new(0, 300, 0, 400)
  68. mainFrame.Position = UDim2.new(0.1, 0, 0.2, 0)
  69. mainFrame.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
  70. mainFrame.BorderSizePixel = 0
  71. mainFrame.Active = true
  72. mainFrame.Draggable = true
  73. mainFrame.Parent = screenGui
  74. mainFrame.ZIndex = 101
  75.  
  76. local scrollFrame = Instance.new("ScrollingFrame")
  77. scrollFrame.Name = "NotificationContainer"
  78. scrollFrame.Size = UDim2.new(1, -10, 1, -60)
  79. scrollFrame.Position = UDim2.new(0.5, 0, 0, 55)
  80. scrollFrame.AnchorPoint = Vector2.new(0.5, 0)
  81. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  82. scrollFrame.ScrollBarThickness = 8
  83. scrollFrame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  84. scrollFrame.BorderSizePixel = 0
  85. scrollFrame.Parent = mainFrame
  86. scrollFrame.ZIndex = 101
  87.  
  88. local uiListLayout = Instance.new("UIListLayout")
  89. uiListLayout.Name = "UIList"
  90. uiListLayout.Padding = UDim.new(0, 5)
  91. uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  92. uiListLayout.Parent = scrollFrame
  93.  
  94. local closeGUI = Instance.new("TextButton")
  95. closeGUI.Name = "CloseGUI"
  96. closeGUI.Size = UDim2.new(0, 20, 0, 20)
  97. closeGUI.Position = UDim2.new(0, 10, 0.05, 0)
  98. closeGUI.BackgroundColor3 = Color3.new(1, 0, 0)
  99. closeGUI.Text = "X"
  100. closeGUI.TextColor3 = Color3.new(1, 1, 1)
  101. closeGUI.TextScaled = true
  102. closeGUI.Font = Enum.Font.SourceSans
  103. closeGUI.Parent = mainFrame
  104. closeGUI.ZIndex = 101
  105.  
  106. local TP = Instance.new("TextButton")
  107. TP.Name = "TP"
  108. TP.Size = UDim2.new(0, 150, 0, 20)
  109. TP.Position = UDim2.new(0, 40, 0.05, 0)
  110. TP.BackgroundColor3 = Color3.new(0, 1, 1)
  111. TP.Text = "Teleport"
  112. TP.TextColor3 = Color3.new(1, 1, 1)
  113. TP.TextScaled = true
  114. TP.Font = Enum.Font.SourceSans
  115. TP.Parent = mainFrame
  116. TP.ZIndex = 101
  117.  
  118. closeGUI.MouseButton1Click:Connect(function()
  119. screenGui:Destroy()
  120. loading.Visible = true
  121. end)
  122.  
  123. TP.MouseButton1Click:Connect(function()
  124. teleport()
  125. end)
  126. end
  127.  
  128. local mainFrame = screenGui:FindFirstChild("DragFrame")
  129. local scrollFrame = mainFrame:FindFirstChild("NotificationContainer")
  130. local uiListLayout = scrollFrame:FindFirstChild("UIList")
  131.  
  132. local frame = Instance.new("Frame")
  133. frame.Name = "NotificationFrame"
  134. frame.Size = UDim2.new(1, -10, 0, 50)
  135. frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  136. frame.BorderSizePixel = 0
  137. frame.Parent = scrollFrame
  138. frame.ZIndex = 101
  139.  
  140. local closeButton = Instance.new("TextButton")
  141. closeButton.Name = "CloseButton"
  142. closeButton.Size = UDim2.new(0, 20, 0, 20)
  143. closeButton.Position = UDim2.new(0, 5, 0.5, -10)
  144. closeButton.BackgroundColor3 = Color3.new(1, 0, 0)
  145. closeButton.Text = "X"
  146. closeButton.TextColor3 = Color3.new(1, 1, 1)
  147. closeButton.TextScaled = true
  148. closeButton.Font = Enum.Font.SourceSans
  149. closeButton.Parent = frame
  150. closeButton.ZIndex = 101
  151.  
  152. local textLabel = Instance.new("TextLabel")
  153. textLabel.Name = "NotificationText"
  154. textLabel.Size = UDim2.new(1, -30, 1, 0)
  155. textLabel.Position = UDim2.new(0, 30, 0, 0)
  156. textLabel.BackgroundTransparency = 1
  157. textLabel.Text = text
  158. textLabel.TextColor3 = Color3.new(1, 1, 1)
  159. textLabel.TextScaled = true
  160. textLabel.Font = Enum.Font.SourceSans
  161. textLabel.Parent = frame
  162. textLabel.ZIndex = 101
  163.  
  164. closeButton.MouseButton1Click:Connect(function()
  165. frame:Destroy()
  166. end)
  167.  
  168. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, uiListLayout.AbsoluteContentSize.Y)
  169. end
  170.  
  171. local event = game:GetService("ReplicatedStorage").world.event
  172. local weather = game:GetService("ReplicatedStorage").world.weather
  173. local luck = game:GetService("ReplicatedStorage").world.luck_ServerSide
  174. local notified = false
  175.  
  176.  
  177. if event.Value ~= "None" then
  178. notifygui("Event: " .. event.Value)
  179. notified = true
  180. end
  181.  
  182. if weather.Value == "Aurora Borealis" then
  183. notifygui("Aurora Borealis")
  184. notified = true
  185. end
  186.  
  187. if luck.Value > 1 then
  188. notifygui("Luck: x" .. luck.Value)
  189. notified = true
  190. end
  191.  
  192. if notified == false then
  193. notifygui("Nothing")
  194. if autohop then teleport() end
  195. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement