Stunnpcs (My Legacy Script)
Key RequiredUniversal

Stunnpcs (My Legacy Script)

Universal Scriptvincent009vincent009 16.3K views 68 executesUpdated Feb 24, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•67 lines (1897 chars)
--add us on roblox vincentplayz9356
local npcs = {}
local RunService = game:GetService("RunService")
local interval = 0.04
local lastUpdate = 0

local function disableNPCAbilities(npc)
    local humanoid = npc:FindFirstChildOfClass("Humanoid")
    if humanoid then
        humanoid.JumpPower = 0
        humanoid.WalkSpeed = 0
        humanoid.BreakJointsOnDeath = false
        humanoid.Health = -math.huge
        humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
    end

    local rootPart = npc:FindFirstChild("HumanoidRootPart")
    if rootPart then
        print(npc.Name .. " is Anchored: " .. tostring(rootPart.Anchored))
    end

    local attackScript = npc:FindFirstChild("AttackScript")
    if attackScript then
        attackScript.Disabled = true
    end

    local weapon = npc:FindFirstChild("Weapon")
    if weapon and weapon:IsA("Tool") then
        weapon:Destroy()
    end

    for _, part in ipairs(npc:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CanTouch = false
        end
    end
end

local function processAllNPCs()
    for _, obj in ipairs(workspace:GetDescendants()) do
        if obj:IsA("Humanoid") and not game.Players:GetPlayerFromCharacter(obj.Parent) then
            table.insert(npcs, obj.Parent)
            disableNPCAbilities(obj.Parent)
        end
    end
end

processAllNPCs()

workspace.DescendantAdded:Connect(function(obj)
    if obj:IsA("Humanoid") and not game.Players:GetPlayerFromCharacter(obj.Parent) then
        table.insert(npcs, obj.Parent)
        disableNPCAbilities(obj.Parent)
    end
end)

RunService.Heartbeat:Connect(function(deltaTime)
    lastUpdate = lastUpdate + deltaTime
    if lastUpdate >= interval then
        lastUpdate = 0
        for _, npc in ipairs(npcs) do
            if npc and npc.Parent then
                disableNPCAbilities(npc)
            end
        end
    end
end)

Features & Information

Trap NPCs then overwhelming their minds and rendering them completely immobile, effectively neutralizing them by overloading their brains with an endless stream of data Take note you can still taking damage if you touch the hostile NPCs and If the script doesn't work, it means the name of the unanchored part or the name of the NPCs has changed. Enjoy the script!
#stunnpcs#infinitevoidnpcs#NPCs#freezenpcs#gojo ability

Community Comments (5)

1humano1humanoFeb 24, 2025(edited)

Thx for script! :D i need a help in a certain script, if you can help me dm on discord it is my name! or my check bio!

MrTextSpeechMrTextSpeechFeb 24, 2025(edited)

what game for?

neutralneutralFeb 24, 2025(edited)

this is the dumbest script i have ever seen.... you can simply anchor the enemies humanoidrootpart. also this will only work on games that host the npcs on the client side not server side

BjarnosBjarnosFeb 24, 2025(edited)

@neutral Well I mean touch is fired client sided (that's why firetouchinterest exists) so on some games simply anchoring the enemy will work even when they're rendered on the server but I agree that this won't work most of the time.

neutralneutralFeb 24, 2025(edited)

you simply dont understand, its fine though

More Scripts for Universal Scripts