Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local StarterGui = game:GetService("StarterGui")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local autoFishEnabled = false
- local trackingConnection = nil
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "AutoFishIndicator"
- screenGui.Parent = playerGui
- local indicator = Instance.new("Frame")
- indicator.Name = "Indicator"
- indicator.Size = UDim2.new(0, 10, 0, 10)
- indicator.Position = UDim2.new(0, 10, 1, -15)
- indicator.BackgroundColor3 = Color3.new(1, 0, 0)
- indicator.BorderSizePixel = 0
- indicator.Parent = screenGui
- local circle = Instance.new("UICorner")
- circle.CornerRadius = UDim.new(1, 0)
- circle.Parent = indicator
- local function performAutoFish()
- local reel = playerGui:FindFirstChild("reel")
- if not reel then return end
- local bar = reel:FindFirstChild("bar")
- if not bar then return end
- local playerbar = bar:FindFirstChild("playerbar")
- local fish = bar:FindFirstChild("fish")
- if playerbar and fish then
- playerbar.Position = fish.Position
- end
- end
- local function toggleAutoFish()
- autoFishEnabled = not autoFishEnabled
- if autoFishEnabled then
- trackingConnection = RunService.RenderStepped:Connect(performAutoFish)
- StarterGui:SetCore("SendNotification", {
- Title = "Auto Fish",
- Text = "Enabled",
- Duration = 2
- })
- indicator.BackgroundColor3 = Color3.new(0, 1, 0)
- else
- if trackingConnection then
- trackingConnection:Disconnect()
- trackingConnection = nil
- end
- StarterGui:SetCore("SendNotification", {
- Title = "Auto Fish",
- Text = "Disabled",
- Duration = 2
- })
- indicator.BackgroundColor3 = Color3.new(1, 0, 0)
- end
- end
- Keybind to toggle auto-fish (Default: F key)
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if not gameProcessed and input.KeyCode == Enum.KeyCode.F then
- toggleAutoFish()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment