1. local G = getgenv and getgenv() or _G or shared
  2. G.AutoFish = true
  3. local ReplicatedStorage, Players, Workspace, spawn, wait = game:GetService("ReplicatedStorage"), game:GetService("Players"), game:GetService("Workspace"), task.spawn, task.wait
  4. local Player = Players.LocalPlayer
  5. local Fish = require(ReplicatedStorage["_replicationFolder"].FishingClient)
  6. spawn(function()
  7. while task.wait() do
  8. pcall(function()
  9. if AutoFish then
  10. Fish:StartCasting()
  11. Player.Character:FindFirstChild("HumanoidRootPart", true).CFrame = CFrame.new(Workspace.Interactions.Nodes.Fishing.Zone.FishingZone.Position +Vector3.new(0,25,0))
  12. if Fish.Snagged then
  13. Fish.ReelSignal:Fire()
  14. if Player.PlayerGui.FishingGui.ContainerFrame.ReelingFrame.BarLabel.InnerLabel.PointerLabel.Position.X.Scale <= Player.PlayerGui.FishingGui.ContainerFrame.ReelingFrame.BarLabel.InnerLabel.SafeBarLabel.Position.X.Scale + .02 then
  15. Fish:Click()
  16. end
  17. end
  18. end
  19. end)
  20. end
  21. end)