-- CONFIG: -- FISCH: local rodName = "Flimsy Rod" -- The name of the rod you wanna use for autofarm (must be equipped). local autoSell = false -- false: Wont sell inv every time a fish is caught. | true: Will sell inv every time a fish is caught. local island = "Moosewood" -- Island to autofarm on: Ancient Isle | Moosewood | Snowcap | Mushgrove Swamp -- CONFIG local LocalPLR = game.Players.LocalPlayer local games = { ["race clicker"] = 9285238704, ["build a boat for treasure"] = 537413528, ["fisch"] = 16732694052 } local function antiAfk() LocalPLR.Idled:Connect(function(time) game:GetService("VirtualUser"):CaptureController() game:GetService("VirtualUser"):ClickButton2(Vector2.new()) end) end if game.PlaceId == games["race clicker"] then game:GetService("StarterGui"):SetCore("SendNotification", { Title = "AutoFarm", Text = "Starting autofarm for 'race clicker'!", Time = 8 }) local mainGui = Instance.new("ScreenGui", game:GetService("CoreGui")) local infoFrame = Instance.new("Frame", mainGui) infoFrame.AnchorPoint = Vector2.new(0.5, 0.5) infoFrame.Position = UDim2.new(0.5, -800, 0.5, 420) infoFrame.Size = UDim2.new(0, 240, 0, 100) infoFrame.BorderSizePixel = 0 infoFrame.BackgroundColor3 = Color3.new(0.086274, 0.086274, 0.086274) Instance.new("UICorner", infoFrame) local winsGainedT = Instance.new("TextLabel", infoFrame) winsGainedT.AnchorPoint = Vector2.new(0.5, 0.5) winsGainedT.Position = UDim2.new(0.5, 0, 0.5, -20) winsGainedT.Font = Enum.Font.SourceSans winsGainedT.TextColor3 = Color3.new(1,1,1) winsGainedT.TextSize = 22 winsGainedT.Text = "Wins Gained: 0K" local timeElapsedT = Instance.new("TextLabel", infoFrame) timeElapsedT.AnchorPoint = Vector2.new(0.5, 0.5) timeElapsedT.Position = UDim2.new(0.5, 0, 0.5, 20) timeElapsedT.Font = Enum.Font.SourceSans timeElapsedT.TextColor3 = Color3.new(1,1,1) timeElapsedT.TextSize = 22 timeElapsedT.Text = "Time Elapsed: 0:0:0" local lastWins = LocalPLR.leaderstats["🏁Wins"].Value lastWins = string.gsub(lastWins, "[K]", "") coroutine.resume(coroutine.create(function() while task.wait() do local w = LocalPLR.leaderstats["🏁Wins"].Value w = string.gsub(w, "[K]", "") winsGainedT.Text = "Wins Gained: " .. string.format("%.1f", tostring(tonumber(w) - tonumber(lastWins))) .. "K" end end)) local hours = 0 local mins = 0 local secs = 0 coroutine.resume(coroutine.create(function() while task.wait(1) do if secs == 59 then mins += 1 secs = 0 else secs += 1 end if mins == 60 then hours += 1 mins = 0 end timeElapsedT.Text = "Time Elapsed: " .. hours .. ":" .. mins .. ":" .. secs end end)) antiAfk() workspace.LoadedWorld.WorldMain.Door.SignStatus.SurfaceGui.Status:GetPropertyChangedSignal("Text"):Connect(function() if workspace.LoadedWorld.WorldMain.Door.SignStatus.SurfaceGui.Status.Text == "Click to build up Speed" then local autoClickC = coroutine.create(function() while task.wait() do game.ReplicatedStorage.Packages.Knit.Services.ClickService.RF.Click:InvokeServer() end end) coroutine.resume(autoClickC) task.wait(20) coroutine.close(autoClickC) task.wait(3) for i = 1, 40 do LocalPLR.Character.Humanoid:MoveTo(LocalPLR.Character:WaitForChild("HumanoidRootPart", 10).Position + (LocalPLR.Character:WaitForChild("HumanoidRootPart", 10).CFrame.LookVector * 99999999999999)) task.wait(3) end end end) elseif game.PlaceId == games["build a boat for treasure"]then game:GetService("StarterGui"):SetCore("SendNotification", { Title = "AutoFarm", Text = "Starting autofarm for 'build a boat for treasure'!", Time = 8 }) antiAfk() coroutine.resume(coroutine.create(function() while true do LocalPLR.Character:WaitForChild("HumanoidRootPart", 10).CanCollide = false LocalPLR.Character:WaitForChild("HumanoidRootPart", 10).CanTouch = false LocalPLR.Character:WaitForChild("HumanoidRootPart", 10).CFrame = CFrame.new(-65.9463272, -9.8999939, -212.943039, -0.999631941, -1.53615587e-09, -0.0271279532, -9.76209447e-10, 1, -2.06541806e-08, 0.0271279532, -2.06200976e-08, -0.999631941) * CFrame.new(0, 100, 0) game:GetService("TweenService"):Create(LocalPLR.Character:WaitForChild("HumanoidRootPart", 10), TweenInfo.new(26, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0), {CFrame = CFrame.new(-54.4849052, -360.404175, 9475.32812, -0.999858022, -1.83793123e-08, 0.0168506559, -1.76937771e-08, 1, 4.08320631e-08, -0.0168506559, 4.05281142e-08, -0.999858022) * CFrame.new(0, 440, -12)}):Play() task.wait(25) LocalPLR.Character.Humanoid.Health = 0 task.wait(5) end end)) coroutine.resume(coroutine.create(function() while task.wait() do workspace.ClaimRiverResultsGold:FireServer() end end)) local mainGui = Instance.new("ScreenGui", game:GetService("CoreGui")) local infoFrame = Instance.new("Frame", mainGui) infoFrame.AnchorPoint = Vector2.new(0.5, 0.5) infoFrame.Position = UDim2.new(0.5, 0, 0.5, 320) infoFrame.Size = UDim2.new(0, 240, 0, 100) infoFrame.BorderSizePixel = 0 infoFrame.BackgroundColor3 = Color3.new(0.086274, 0.086274, 0.086274) Instance.new("UICorner", infoFrame) local goldGainedT = Instance.new("TextLabel", infoFrame) goldGainedT.AnchorPoint = Vector2.new(0.5, 0.5) goldGainedT.Position = UDim2.new(0.5, 0, 0.5, -20) goldGainedT.Font = Enum.Font.SourceSans goldGainedT.TextColor3 = Color3.new(1,1,1) goldGainedT.TextSize = 22 goldGainedT.Text = "Gold Gained: 0" local timeElapsedT = Instance.new("TextLabel", infoFrame) timeElapsedT.AnchorPoint = Vector2.new(0.5, 0.5) timeElapsedT.Position = UDim2.new(0.5, 0, 0.5, 20) timeElapsedT.Font = Enum.Font.SourceSans timeElapsedT.TextColor3 = Color3.new(1,1,1) timeElapsedT.TextSize = 22 timeElapsedT.Text = "Time Elapsed: 0:0:0" local lastGold = LocalPLR.Data.Gold.Value coroutine.resume(coroutine.create(function() while task.wait() do goldGainedT.Text = "Gold Gained: " .. LocalPLR.Data.Gold.Value - lastGold end end)) local hours = 0 local mins = 0 local secs = 0 coroutine.resume(coroutine.create(function() while task.wait(1) do if secs == 59 then mins += 1 secs = 0 else secs += 1 end if mins == 60 then hours += 1 mins = 0 end timeElapsedT.Text = "Time Elapsed: " .. hours .. ":" .. mins .. ":" .. secs end end)) elseif game.PlaceId == games.fisch then game:GetService("StarterGui"):SetCore("SendNotification", { Title = "AutoFarm", Text = "Starting autofarm for 'fisch'!", Time = 8 }) antiAfk() if island == "Ancient Isle" then LocalPLR.Character.HumanoidRootPart.CFrame = CFrame.new(5504.60254, 138.201874, 575.093201, 0.208576754, -3.01637226e-09, 0.978006005, 1.02225918e-07, 1, -1.87172446e-08, -0.978006005, 1.03881547e-07, 0.208576754) elseif island == "Moosewood" then LocalPLR.Character.HumanoidRootPart.CFrame = CFrame.new(319.198364, 133.615952, 218.551254, -1, 5.51702968e-08, -2.98021554e-08, 5.51702932e-08, 1, 5.80070996e-08, 2.9802159e-08, 5.8007096e-08, -1) elseif island == "Snowcap" then LocalPLR.Character.HumanoidRootPart.CFrame = CFrame.new(2934.77759, 135.283829, 2360.55518, 0.933580995, -1.85334581e-09, -0.358366549, 2.32984299e-09, 1, 8.97827312e-10, 0.358366549, -1.6731323e-09, 0.933580995) elseif island == "Mushgrove Swamp" then LocalPLR.Character.HumanoidRootPart.CFrame = CFrame.new(2437.41455, 129.188568, -719.009521, 0.0958453566, -5.29502175e-09, -0.995396256, 1.50315138e-09, 1, -5.17477483e-09, 0.995396256, -1.0002531e-09, 0.0958453566) end LocalPLR.Character.Humanoid:EquipTool(LocalPLR.Backpack[rodName]) coroutine.resume(coroutine.create(function() while task.wait() do if LocalPLR.PlayerGui:FindFirstChild("reel") then local args = { [1] = 100, [2] = true } game:GetService("ReplicatedStorage"):WaitForChild("events"):WaitForChild("reelfinished"):FireServer(unpack(args)) if autoSell == true then task.wait(1) game.ReplicatedStorage.events.SellAll:InvokeServer() end else local args = { [1] = 100, [2] = 1 } game:GetService("Players").LocalPlayer.Character:FindFirstChild(rodName).events.cast:FireServer(unpack(args)) end end end)) else game:GetService("StarterGui"):SetCore("SendNotification", { Title = "AutoFarm", Text = "Game not supported!", Time = 6 }) end