auto farm
Key Required

auto farm

Slasher Loot[V7]VibeCodingVibeCoding 791 views 325 executesUpdated Feb 15, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•237 lines (7642 chars)
local RS = game:GetService("ReplicatedStorage")
local LP = game:GetService("Players").LocalPlayer
local M1 = RS.Remote.Event.Combat:WaitForChild("M1")
local SkillDmg = RS.Remote.Event.Skill:WaitForChild("[C-S]SkillDamage")

pcall(function() RS.Remote.Event.Setting:WaitForChild("[C-S]PlayerTrySet"):FireServer("AutoPick", true) end)
pcall(function() RS.Remote.Event.Setting:WaitForChild("[C-S]PlayerTrySet"):FireServer("AutoSwing", true) end)
pcall(function() game.CoreGui:FindFirstChild("AOEFarm"):Destroy() end)

local gui = Instance.new("ScreenGui")
gui.Name = "AOEFarm"
gui.ResetOnSpawn = false
gui.Parent = game.CoreGui

local main = Instance.new("Frame")
main.Size = UDim2.new(0, 200, 0, 165)
main.Position = UDim2.new(0.5, -100, 0, 10)
main.BackgroundColor3 = Color3.fromRGB(12, 12, 22)
main.BorderSizePixel = 0
main.Active = true
main.Draggable = true
main.Parent = gui
Instance.new("UICorner", main).CornerRadius = UDim.new(0, 8)
local s = Instance.new("UIStroke", main)
s.Color = Color3.fromRGB(140, 50, 220)
s.Thickness = 1.5

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 22)
title.BackgroundColor3 = Color3.fromRGB(70, 20, 140)
title.Text = "AOE FARM"
title.TextColor3 = Color3.fromRGB(230, 210, 255)
title.TextSize = 11
title.Font = Enum.Font.GothamBold
title.BorderSizePixel = 0
title.Parent = main
Instance.new("UICorner", title).CornerRadius = UDim.new(0, 8)

local close = Instance.new("TextButton")
close.Size = UDim2.new(0, 22, 0, 22)
close.Position = UDim2.new(1, -22, 0, 0)
close.BackgroundTransparency = 1
close.Text = "X"
close.TextColor3 = Color3.fromRGB(255, 100, 100)
close.TextSize = 12
close.Font = Enum.Font.GothamBold
close.Parent = main

local function makeBtn(text, yPos, color)
	local btn = Instance.new("TextButton")
	btn.Size = UDim2.new(1, -10, 0, 28)
	btn.Position = UDim2.new(0, 5, 0, yPos)
	btn.BackgroundColor3 = color
	btn.Text = text
	btn.TextColor3 = Color3.fromRGB(220, 220, 230)
	btn.TextSize = 11
	btn.Font = Enum.Font.GothamBold
	btn.BorderSizePixel = 0
	btn.Parent = main
	Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 5)
	return btn
end

local farmBtn = makeBtn("FARM [OFF]", 28, Color3.fromRGB(30, 30, 48))
local killBtn = makeBtn("KILL ALL MAP [OFF]", 60, Color3.fromRGB(80, 15, 15))
local speedBtn = makeBtn("SPEED [OFF]", 92, Color3.fromRGB(30, 30, 48))

-- Anchor row
local anchorBtn = Instance.new("TextButton")
anchorBtn.Size = UDim2.new(0.6, -7, 0, 24)
anchorBtn.Position = UDim2.new(0, 5, 0, 126)
anchorBtn.BackgroundColor3 = Color3.fromRGB(50, 30, 90)
anchorBtn.Text = "Set Anchor"
anchorBtn.TextColor3 = Color3.fromRGB(200, 200, 220)
anchorBtn.TextSize = 10
anchorBtn.Font = Enum.Font.GothamBold
anchorBtn.BorderSizePixel = 0
anchorBtn.Parent = main
Instance.new("UICorner", anchorBtn).CornerRadius = UDim.new(0, 5)

local radiusBox = Instance.new("TextBox")
radiusBox.Size = UDim2.new(0.4, -7, 0, 24)
radiusBox.Position = UDim2.new(0.6, 2, 0, 126)
radiusBox.BackgroundColor3 = Color3.fromRGB(30, 30, 48)
radiusBox.Text = "80"
radiusBox.PlaceholderText = "Radius"
radiusBox.TextColor3 = Color3.fromRGB(200, 200, 220)
radiusBox.TextSize = 10
radiusBox.Font = Enum.Font.GothamBold
radiusBox.BorderSizePixel = 0
radiusBox.Parent = main
Instance.new("UICorner", radiusBox).CornerRadius = UDim.new(0, 5)

-- State
local farming = false
local killingAll = false
local speeding = false
local speedConn = nil
local anchorPos = nil
local farmRadius = 80

local function getMobFolder()
	local live = workspace:FindFirstChild("Live")
	return live and live:FindFirstChild("MobModel")
end

-- Anchor: click to set, click again to clear
anchorBtn.MouseButton1Click:Connect(function()
	if anchorPos then
		anchorPos = nil
		anchorBtn.Text = "Set Anchor"
		anchorBtn.BackgroundColor3 = Color3.fromRGB(50, 30, 90)
	else
		local hrp = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart")
		if hrp then
			anchorPos = hrp.Position
			farmRadius = tonumber(radiusBox.Text) or 80
			anchorBtn.Text = "Anchored!"
			anchorBtn.BackgroundColor3 = Color3.fromRGB(30, 80, 30)
		end
	end
end)

-- After death: TP back to anchor
LP.CharacterAdded:Connect(function(char)
	if anchorPos and farming then
		task.wait(1)
		local hrp = char:WaitForChild("HumanoidRootPart", 5)
		if hrp then
			hrp.CFrame = CFrame.new(anchorPos)
		end
	end
end)

-- Farm: TP to closest mob + AOE attack (respects anchor if set)
farmBtn.MouseButton1Click:Connect(function()
	farming = not farming
	farmBtn.Text = "FARM " .. (farming and "[ON]" or "[OFF]")
	farmBtn.BackgroundColor3 = farming and Color3.fromRGB(40, 120, 40) or Color3.fromRGB(30, 30, 48)
	if farming then
		task.spawn(function()
			while farming do
				pcall(function()
					local hrp = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart")
					if not hrp then return end
					local folder = getMobFolder()
					if not folder then return end
					local best, bestDist = nil, math.huge
					for _, mob in ipairs(folder:GetChildren()) do
						if mob:FindFirstChild("HumanoidRootPart") and not mob:GetAttribute("Dead") then
							local mobPos = mob.HumanoidRootPart.Position
							local inAnchor = not anchorPos or (mobPos - anchorPos).Magnitude <= farmRadius
							if inAnchor then
								local d = (hrp.Position - mobPos).Magnitude
								if d < bestDist then best, bestDist = mob, d end
							end
						end
					end
					if best then
						if bestDist > 7 then
							hrp.CFrame = best.HumanoidRootPart.CFrame * CFrame.new(0, 0, 3)
						end
						local nearby = {}
						for _, mob in ipairs(folder:GetChildren()) do
							if mob:FindFirstChild("HumanoidRootPart") and not mob:GetAttribute("Dead") then
								if (hrp.Position - mob.HumanoidRootPart.Position).Magnitude <= 15 then
									table.insert(nearby, mob.Name)
								end
							end
						end
						if #nearby > 0 then
							M1:FireServer(nearby)
							for _, sk in ipairs({"S1","S2","S3","S5","S6","S7","S8"}) do
								pcall(function() SkillDmg:FireServer(sk, nearby, 1) end)
							end
						end
					end
				end)
				task.wait()
			end
		end)
	end
end)

-- Kill All Map: M1 every mob on map, no distance check
killBtn.MouseButton1Click:Connect(function()
	killingAll = not killingAll
	killBtn.Text = "KILL ALL MAP " .. (killingAll and "[ON]" or "[OFF]")
	killBtn.BackgroundColor3 = killingAll and Color3.fromRGB(200, 30, 30) or Color3.fromRGB(80, 15, 15)
	if killingAll then
		task.spawn(function()
			while killingAll do
				pcall(function()
					local folder = getMobFolder()
					if not folder then return end
					local names = {}
					for _, mob in ipairs(folder:GetChildren()) do
						if not mob:GetAttribute("Dead") then
							table.insert(names, mob.Name)
						end
					end
					if #names > 0 then
						M1:FireServer(names)
					end
				end)
				task.wait()
			end
		end)
	end
end)

-- Speed
speedBtn.MouseButton1Click:Connect(function()
	speeding = not speeding
	speedBtn.Text = "SPEED " .. (speeding and "[ON]" or "[OFF]")
	speedBtn.BackgroundColor3 = speeding and Color3.fromRGB(40, 120, 40) or Color3.fromRGB(30, 30, 48)
	if speeding then
		speedConn = game:GetService("RunService").Heartbeat:Connect(function()
			if not speeding then return end
			local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid")
			if hum then hum.WalkSpeed = 150 end
		end)
	else
		if speedConn then speedConn:Disconnect() end
		pcall(function()
			LP.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 16
		end)
	end
end)

close.MouseButton1Click:Connect(function()
	farming = false
	killingAll = false
	speeding = false
	if speedConn then pcall(function() speedConn:Disconnect() end) end
	gui:Destroy()
end)

Features & Information

- auto farm - aoe attack - anchor by radius - auto collect - auto tp

Community Comments (0)

No comments yet for this script.

More Scripts for Slasher Loot[V7]