
Key Required

-- ⚔️ FULL AUTO FARM GUI (Only AutoFarm)
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local autofarm = false
local chosenMob = nil
local hitRange = 10 -- neçə məsafədə vuracaq
local farmSpeed = 0.2 -- vurma sürəti
-- GUI
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AutoFarmGui"
ScreenGui.Parent = game:GetService("CoreGui")
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 280, 0, 360)
Frame.Position = UDim2.new(0.05, 0, 0.2, 0)
Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
Frame.Active = true
Frame.Draggable = true
Frame.Parent = ScreenGui
Instance.new("UICorner", Frame).CornerRadius = UDim.new(0,12)
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Text = "⚔️ AUTO FARM"
Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextScaled = true
Title.Font = Enum.Font.SourceSansBold
Title.Parent = Frame
Instance.new("UICorner", Title).CornerRadius = UDim.new(0,10)
-- Toggle düymə
local FarmBtn = Instance.new("TextButton")
FarmBtn.Size = UDim2.new(1, -20, 0, 35)
FarmBtn.Position = UDim2.new(0, 10, 0, 50)
FarmBtn.BackgroundColor3 = Color3.fromRGB(100, 30, 30)
FarmBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
FarmBtn.Text = "AutoFarm: OFF"
FarmBtn.Parent = Frame
Instance.new("UICorner", FarmBtn).CornerRadius = UDim.new(0,8)
FarmBtn.MouseButton1Click:Connect(function()
autofarm = not autofarm
FarmBtn.Text = "AutoFarm: " .. (autofarm and "ON" or "OFF")
FarmBtn.BackgroundColor3 = autofarm and Color3.fromRGB(30, 120, 30) or Color3.fromRGB(100, 30, 30)
end)
-- MOB siyahısı
local MobList = Instance.new("ScrollingFrame")
MobList.Size = UDim2.new(1, -20, 0, 230)
MobList.Position = UDim2.new(0, 10, 0, 100)
MobList.CanvasSize = UDim2.new(0,0,0,0)
MobList.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MobList.ScrollBarThickness = 6
MobList.Parent = Frame
Instance.new("UICorner", MobList).CornerRadius = UDim.new(0,8)
local function refreshMobs()
MobList:ClearAllChildren()
local y = 0
for _, mob in pairs(workspace:GetDescendants()) do
if mob:FindFirstChild("Humanoid") and mob:FindFirstChild("HumanoidRootPart") and mob.Humanoid.Health > 0 then
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -10, 0, 28)
btn.Position = UDim2.new(0, 5, 0, y)
btn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Text = mob.Name
btn.Parent = MobList
Instance.new("UICorner", btn).CornerRadius = UDim.new(0,6)
btn.MouseButton1Click:Connect(function()
chosenMob = mob.Name
print("✅ Chosen mob:", chosenMob)
end)
y = y + 32
end
end
MobList.CanvasSize = UDim2.new(0,0,0,y)
end
-- AUTO FARM LOOP
task.spawn(function()
while true do
if autofarm and chosenMob then
char = player.Character
local humanoid = char and char:FindFirstChild("Humanoid")
if char and humanoid and char:FindFirstChild("HumanoidRootPart") then
local target = nil
for _, mob in pairs(workspace:GetDescendants()) do
if mob.Name == chosenMob and mob:FindFirstChild("HumanoidRootPart") and mob:FindFirstChild("Humanoid") then
if mob.Humanoid.Health > 0 then
target = mob
break
end
end
end
if target then
while target and target:FindFirstChild("Humanoid") and target.Humanoid.Health > 0 and autofarm do
humanoid:MoveTo(target.HumanoidRootPart.Position)
if (char.HumanoidRootPart.Position - target.HumanoidRootPart.Position).Magnitude < hitRange then
for _, tool in pairs(char:GetChildren()) do
if tool:IsA("Tool") then
tool:Activate()
end
end
end
task.wait(farmSpeed)
end
end
end
end
task.wait(farmSpeed)
end
end)
-- MOB siyahısını yenilə
task.spawn(function()
while true do
refreshMobs()
task.wait(6)
end
end)



bro what auto farm??? this basically auto clicker smh
@highheavenpalace3 select mob auto hit
@highheavenpalace3 number mobs name click and start autofarm