basic autofarm open src
Key Required

basic autofarm open src

Cursed Blade[ALPHA]rhetoricrhetoric 1.8K views 296 executesUpdated Apr 23, 2026
5.0/ 5(3 votes)
30100% Positive
Lua Script•245 lines (7612 chars)
--// Variables and Services

local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local Event = player.Character.NetMessage.TrigerSkill
local entityfolder = workspace:FindFirstChild("Entity")
local hrp = char:WaitForChild("HumanoidRootPart")
local cachedArg1 = nil
local currentTarget = nil
local loot = workspace.FX

---------------------------------------------------------------

local repo = 'https://raw.githubusercontent.com/violin-suzutsuki/LinoriaLib/main/'

local Library = loadstring(game:HttpGet(repo .. 'Library.lua'))()
local ThemeManager = loadstring(game:HttpGet(repo .. 'addons/ThemeManager.lua'))()
local SaveManager = loadstring(game:HttpGet(repo .. 'addons/SaveManager.lua'))()

local Window = Library:CreateWindow({
    Title = 'Angels - Cursed Blade [ALPHA]',
    Center = true,
    AutoShow = true,
    TabPadding = 8,
    MenuFadeTime = 0.2
})

local Tabs = {
    Main = Window:AddTab('Combat'),
    Farming = Window:AddTab('Farming'),
    Utility = Window:AddTab('Utility'),
    ['UI Settings'] = Window:AddTab('Settings'),
}

local LeftGroupBox = Tabs.Main:AddLeftGroupbox('Combat')
local LeftGroupBox2 = Tabs.Farming:AddLeftGroupbox('Farming')
local LeftGroupBox3 = Tabs.Utility:AddLeftGroupbox('Utility')

------------------------------------------------------------------

local function Entity(radius)
    local entity = {}
    for _, v in ipairs(entityfolder:GetChildren()) do
        local Entityhrp = v:FindFirstChild("HumanoidRootPart")
        local EntityHumanoid = v:FindFirstChild("Humanoid")

        if Entityhrp and EntityHumanoid and EntityHumanoid.Health > 0 then
            if (hrp.Position - Entityhrp.Position).Magnitude <= radius then
                entity[#entity+1] = v
            end
        end
    end
    return entity
end

------------------------------------------------------------------

local oldnamecall
oldnamecall = hookmetamethod(game, "__namecall", function(self, ...)
    local args = {...}
    local method = getnamecallmethod()
    if method == "FireServer" and self.Name == "Trigerskill" then
        cachedArg1 = args[1]
    end
    return oldnamecall(self, ...)
end)

------------------------------------------------------------------

LeftGroupBox3:AddToggle('AutoPickup', {
    Text = 'Auto Pickup',
    Default = false,
    Tooltip = 'Automatically picks up nearby loot'
})

LeftGroupBox3:AddToggle('AutoPickup', {
    Text = 'Auto Pickup',
    Default = false,
    Tooltip = 'Automatically picks up nearby loot'
})

task.spawn(function()
    while task.wait() do
        if Toggles.AutoPickup.Value then
            for _, touch in ipairs(loot:GetDescendants()) do
                if touch:IsA("TouchTransmitter") then
                    local part = touch.Parent
                    if part and part:IsA("BasePart") then
                        firetouchinterest(hrp, part, 0)
                        task.wait()
                        firetouchinterest(hrp, part, 1)
                    end
                end
            end
        end
    end
end)

------------------------------------------------------------------

LeftGroupBox2:AddToggle('AutoFarm', {
    Text = 'Auto Farm',
    Default = false,
    Tooltip = 'Automatically farms nearest entity'
})

task.spawn(function()
    while task.wait() do
        if Toggles.AutoFarm.Value then
            Toggles.KillAura:SetValue(true)

            if currentTarget then
                local hum = currentTarget:FindFirstChild("Humanoid")
                local hrp2 = currentTarget:FindFirstChild("HumanoidRootPart")

                if not hum or hum.Health <= 0 or not hrp2 then
                    currentTarget = nil
                end
            end

            if not currentTarget then
                local entities = Entity(100)

                local closest = nil
                local shortest = math.huge

                for _, v in ipairs(entities) do
                    local targetHRP = v:FindFirstChild("HumanoidRootPart")
                    local targetHum = v:FindFirstChild("Humanoid")

                    if targetHRP and targetHum and targetHum.Health > 0 then
                        local dist = (hrp.Position - targetHRP.Position).Magnitude
                        if dist < shortest then
                            shortest = dist
                            closest = v
                        end
                    end
                end

                currentTarget = closest
            end

            if currentTarget then
                local targetHRP = currentTarget:FindFirstChild("HumanoidRootPart")
                if targetHRP then
                    hrp.CFrame = targetHRP.CFrame * CFrame.new(0, 0, -3)
                end
            end
        else
            currentTarget = nil
        end
    end
end)

------------------------------------------------------------------

LeftGroupBox:AddToggle('KillAura', {
    Text = 'Kill Aura',
    Default = false,
    Tooltip = 'Auto attacks nearby entities'
})

task.spawn(function()
    while task.wait(0.05) do
        if Toggles.KillAura.Value then
            if currentTarget then
                local targetHRP = currentTarget:FindFirstChild("HumanoidRootPart")
                local targetHum = currentTarget:FindFirstChild("Humanoid")

                if targetHRP and targetHum and targetHum.Health > 0 then
                    Event:FireServer(
                        cachedArg1 or 101,
                        "Enter",
                        hrp.CFrame,
                        1
                    )
                end
            else
                local entities = Entity(100)
                for _, v in ipairs(entities) do
                    local targetHRP = v:FindFirstChild("HumanoidRootPart")
                    if targetHRP then
                        Event:FireServer(
                            cachedArg1 or 101,
                            "Enter",
                            hrp.CFrame,
                            1
                        )
                    end
                end
            end
        end
    end
end)

------------------------------------------------------------------

Library:SetWatermarkVisibility(true)

local FrameTimer = tick()
local FrameCounter = 0
local FPS = 60

local WatermarkConnection = game:GetService('RunService').RenderStepped:Connect(function()
    FrameCounter += 1
    if (tick() - FrameTimer) >= 1 then
        FPS = FrameCounter
        FrameTimer = tick()
        FrameCounter = 0
    end
    Library:SetWatermark(('LinoriaLib | %s fps | %s ms'):format(
        math.floor(FPS),
        math.floor(game:GetService('Stats').Network.ServerStatsItem['Data Ping']:GetValue())
    ))
end)

Library.KeybindFrame.Visible = true

Library:OnUnload(function()
    WatermarkConnection:Disconnect()
    Library.Unloaded = true
end)

------------------------------------------------------------------

local MenuGroup = Tabs['UI Settings']:AddLeftGroupbox('Menu')

MenuGroup:AddButton('Unload', function() Library:Unload() end)
MenuGroup:AddLabel('Menu bind'):AddKeyPicker('MenuKeybind', { Default = 'End', NoUI = true })

Library.ToggleKeybind = Options.MenuKeybind

ThemeManager:SetLibrary(Library)
SaveManager:SetLibrary(Library)

SaveManager:IgnoreThemeSettings()
SaveManager:SetIgnoreIndexes({ 'MenuKeybind' })

ThemeManager:SetFolder('MyScriptHub')
SaveManager:SetFolder('MyScriptHub/specific-game')

SaveManager:BuildConfigSection(Tabs['UI Settings'])
ThemeManager:ApplyToTab(Tabs['UI Settings'])

SaveManager:LoadAutoloadConfig()

Features & Information

auto pick up kill aura auto farm

Community Comments (2)

luigi321luigi321Apr 23, 2026

good script

Replying to @luigi321
rhetoricrhetoricApr 24, 2026

@luigi321 ty bro

More Scripts for Cursed Blade[ALPHA]