-- Originally released on v3rmillion by [Link]
net/threads/fisch-auto-
fish.13532/
local Players = game:GetService('Players')
local CoreGui = game:GetService('StarterGui')
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local ContextActionService = game:GetService('ContextActionService')
local VirtualInputManager = game:GetService('VirtualInputManager')
local LocalPlayer = [Link]
local Enabled = false
local Rod = false
local Casted = false
local Progress = false
local Finished = false
local Keybind = [Link].F
function ShowNotification(String)
CoreGui:SetCore('SendNotification', {
Title = 'Notification',
Text = String,
Duration = 1
})
end
function ToggleFarm(Name, State, Input)
if State == [Link] then
Enabled = not Enabled
[Link] = Enabled
if not Enabled then
Finished = false
Progress = false
if Rod then
[Link]:FireServer()
end
end
ShowNotification(`Status: {Enabled}`)
end
end
[Link]:Connect(function(Child)
if Child:IsA('Tool') and [Link]:lower():find('rod') then
Rod = Child
end
end)
[Link]:Connect(function(Child)
if Child == Rod then
Enabled = false
Finished = false
Progress = false
Rod = nil
end
end)
[Link]:Connect(function(Descendant)
if [Link] == 'button' and [Link] == 'safezone' then
[Link](0.1)
local ButtonPosition, ButtonSize = [Link],
[Link]
VirtualInputManager:SendMouseButtonEvent(ButtonPosition.X + (ButtonSize.X /
2), ButtonPosition.Y + (ButtonSize.Y / 2), [Link],
true, [Link], 1)
VirtualInputManager:SendMouseButtonEvent(ButtonPosition.X + (ButtonSize.X /
2), ButtonPosition.Y + (ButtonSize.Y / 2), [Link],
false, [Link], 1)
elseif [Link] == 'playerbar' and [Link] == 'bar' then
Finished = true
Descendant:GetPropertyChangedSignal('Position'):Wait()
[Link]:FireServer(100, true)
end
end)
[Link]:Connect(function(Descendant)
if [Link] == 'reel' then
Finished = false
Progress = false
end
end)
[Link](function()
while true do
if Enabled and not Progress then
if Rod then
Progress = true
[Link](0.5)
[Link]:FireServer()
[Link]:FireServer(100.5)
end
end
[Link]()
end
end)()
local NewRod = [Link]:FindFirstChildWhichIsA('Tool')
if NewRod and [Link]:lower():find('rod') then
Rod = NewRod
end
ContextActionService:BindAction('ToggleFarm', ToggleFarm, false, Keybind)
ShowNotification(`Press '{[Link]}' to enable/disable`)