local player = game.Players.LocalPlayer local pGui = player:WaitForChild("PlayerGui") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") -- Globalne spremenljivke _G.AutoFarmEnabled = false local lastFishPosition = nil -- ODSTRANJEVANJE STAREGA UI if pGui:FindFirstChild("FishingGui") then pGui.FishingGui:Destroy() end -- STVARITEV UI local screenGui = Instance.new("ScreenGui") screenGui.Name = "FishingGui" screenGui.IgnoreGuiInset = true screenGui.ResetOnSpawn = false screenGui.Parent = pGui local mainButton = Instance.new("TextButton") mainButton.Size = UDim2.new(0, 200, 0, 60) mainButton.Position = UDim2.new(0.5, -100, 0.15, 0) mainButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) mainButton.Text = "AUTO-FARM: OFF" mainButton.TextColor3 = Color3.fromRGB(255, 255, 255) mainButton.Font = Enum.Font.GothamBold mainButton.TextSize = 18 mainButton.Parent = screenGui local uiCorner = Instance.new("UICorner") uiCorner.CornerRadius = UDim.new(0, 12) uiCorner.Parent = mainButton mainButton.MouseButton1Click:Connect(function() _G.AutoFarmEnabled = not _G.AutoFarmEnabled mainButton.Text = _G.AutoFarmEnabled and "AUTO-FARM: ON" or "AUTO-FARM: OFF" mainButton.BackgroundColor3 = _G.AutoFarmEnabled and Color3.fromRGB(50, 200, 50) or Color3.fromRGB(200, 50, 50) end) -- FUNKCIJA ZA NOVEGA LIKA (Health + Teleport nazaj) local function onCharacterAdded(char) local root = char:WaitForChild("HumanoidRootPart", 10) local hum = char:WaitForChild("Humanoid", 10) -- 1. Teleport nazaj na zadnjo lokacijo ribe, če obstaja if lastFishPosition and _G.AutoFarmEnabled then task.wait(0.1) -- Kratek premor, da se igra naloži root.CFrame = CFrame.new(lastFishPosition) end -- 2. God Mode (Zdravje) if hum then hum.HealthChanged:Connect(function() if hum.Health < hum.MaxHealth then hum.Health = hum.MaxHealth end end) end end if player.Character then onCharacterAdded(player.Character) end player.CharacterAdded:Connect(onCharacterAdded) -- GLAVNA ZANKA RunService.RenderStepped:Connect(function() if not _G.AutoFarmEnabled then return end local gameFolder = workspace:FindFirstChild("Game") local fishes = gameFolder and gameFolder:FindFirstChild("Fishes") if not fishes then return end local char = player.Character local root = char and char:FindFirstChild("HumanoidRootPart") if not root then return end local highest = 0 local targetFish = nil for _, fish in ipairs(fishes:GetChildren()) do local cash = fish:GetAttribute("CashPerSec") local owner = fish:GetAttribute("Owner") if cash and (not owner or owner == "") and cash > highest then highest = cash targetFish = fish end end if targetFish then pcall(function() local currentPos = targetFish:GetPivot() root.CFrame = currentPos -- Shranimo lokacijo te ribe kot "zadnjo znano" lastFishPosition = currentPos.Position local prompt = targetFish.RootPart:FindFirstChildOfClass("ProximityPrompt") if prompt then fireproximityprompt(prompt) local remote = ReplicatedStorage:FindFirstChild("Packets") and ReplicatedStorage.Packets:FindFirstChild("Packet") and ReplicatedStorage.Packets.Packet:FindFirstChild("RemoteEvent") if remote then remote:FireServer(buffer.fromstring("\003\001")) end end end) end end)