Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local ToggleBtn = Instance.new("TextButton")
- local StatusLabel = Instance.new("TextLabel")
- local MinimizeBtn = Instance.new("TextButton")
- local CreditLabel = Instance.new("TextLabel")
- local UICorner = Instance.new("UICorner")
- -- UI Properties
- ScreenGui.Name = "FelixFishHub"
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ResetOnSpawn = false
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- MainFrame.Position = UDim2.new(0.5, -100, 0.5, -75)
- MainFrame.Size = UDim2.new(0, 220, 0, 160)
- MainFrame.Active = true
- MainFrame.Draggable = true
- MainFrame.ClipsDescendants = true
- UICorner.CornerRadius = UDim.new(0, 10)
- UICorner.Parent = MainFrame
- Title.Name = "Title"
- Title.Parent = MainFrame
- Title.BackgroundTransparency = 1
- Title.Position = UDim2.new(0, 10, 0, 0)
- Title.Size = UDim2.new(0, 150, 0, 40)
- Title.Font = Enum.Font.GothamBold
- Title.Text = "FISH FARMER"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 16
- Title.TextXAlignment = Enum.TextXAlignment.Left
- MinimizeBtn.Name = "MinimizeBtn"
- MinimizeBtn.Parent = MainFrame
- MinimizeBtn.BackgroundTransparency = 1
- MinimizeBtn.Position = UDim2.new(1, -35, 0, 5)
- MinimizeBtn.Size = UDim2.new(0, 30, 0, 30)
- MinimizeBtn.Font = Enum.Font.GothamBold
- MinimizeBtn.Text = "-"
- MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- MinimizeBtn.TextSize = 20
- ToggleBtn.Name = "ToggleBtn"
- ToggleBtn.Parent = MainFrame
- ToggleBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
- ToggleBtn.Position = UDim2.new(0.1, 0, 0.35, 0)
- ToggleBtn.Size = UDim2.new(0.8, 0, 0.3, 0)
- ToggleBtn.Font = Enum.Font.GothamMedium
- ToggleBtn.Text = "DISABLED"
- ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleBtn.TextSize = 16
- local btnCorner = Instance.new("UICorner")
- btnCorner.CornerRadius = UDim.new(0, 6)
- btnCorner.Parent = ToggleBtn
- StatusLabel.Name = "Status"
- StatusLabel.Parent = MainFrame
- StatusLabel.BackgroundTransparency = 1
- StatusLabel.Position = UDim2.new(0, 0, 0.65, 0)
- StatusLabel.Size = UDim2.new(1, 0, 0, 20)
- StatusLabel.Font = Enum.Font.Gotham
- StatusLabel.Text = "Status: Idle"
- StatusLabel.TextColor3 = Color3.fromRGB(180, 180, 180)
- StatusLabel.TextSize = 13
- CreditLabel.Name = "Credit"
- CreditLabel.Parent = MainFrame
- CreditLabel.BackgroundTransparency = 1
- CreditLabel.Position = UDim2.new(0, 0, 0.85, 0)
- CreditLabel.Size = UDim2.new(1, 0, 0, 20)
- CreditLabel.Font = Enum.Font.Code
- CreditLabel.Text = "Made with 💘 by felix"
- CreditLabel.TextColor3 = Color3.fromRGB(100, 100, 100)
- CreditLabel.TextSize = 11
- --- Logic ---
- local fishes = workspace.Game.Fishes
- local player = game.Players.LocalPlayer
- local RunService = game:GetService("RunService")
- local farming = false
- local connection
- local minimized = false
- -- Minimize Toggle
- MinimizeBtn.MouseButton1Click:Connect(function()
- minimized = not minimized
- if minimized then
- MainFrame:TweenSize(UDim2.new(0, 220, 0, 40), "Out", "Quart", 0.3, true)
- MinimizeBtn.Text = "+"
- else
- MainFrame:TweenSize(UDim2.new(0, 220, 0, 160), "Out", "Quart", 0.3, true)
- MinimizeBtn.Text = "-"
- end
- end)
- local function startFarming()
- connection = RunService.RenderStepped:Connect(function()
- local character = player.Character
- local rootPart = character and character:FindFirstChild("HumanoidRootPart")
- if not rootPart then return end
- local highest = 0
- local highestFish = nil
- for _, fish in ipairs(fishes:GetChildren()) do
- local cash = fish:GetAttribute("CashPerSec")
- local owner = fish:GetAttribute("Owner")
- if cash and not owner and cash > highest then
- highest = cash
- highestFish = fish
- end
- end
- if highestFish then
- local fishPosition = highestFish:GetPivot().Position
- rootPart.CFrame = CFrame.new(fishPosition)
- local prompt = highestFish.RootPart:FindFirstChild("ProximityPrompt")
- if prompt then
- fireproximityprompt(prompt)
- local args = { buffer.fromstring("\003\001") }
- game:GetService("ReplicatedStorage"):WaitForChild("Packets"):WaitForChild("Packet"):WaitForChild("RemoteEvent"):FireServer(unpack(args))
- end
- end
- end)
- end
- ToggleBtn.MouseButton1Click:Connect(function()
- farming = not farming
- if farming then
- ToggleBtn.Text = "ENABLED"
- ToggleBtn.BackgroundColor3 = Color3.fromRGB(40, 180, 40)
- StatusLabel.Text = "Status: Farming..."
- StatusLabel.TextColor3 = Color3.fromRGB(100, 255, 100)
- startFarming()
- else
- ToggleBtn.Text = "DISABLED"
- ToggleBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
- StatusLabel.Text = "Status: Idle"
- StatusLabel.TextColor3 = Color3.fromRGB(180, 180, 180)
- if connection then connection:Disconnect() end
- end
- end)