Universal Script 📌
16.3k Views
169 Executions

Stunnpcs (My Legacy Script)

Universal Script 📌
vincent009
vincent00910 followers
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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!

Updates

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Adjusted the value of npc's health

  4. Script edited: Update script

  5. Script edited: Update script

View Raw
--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


Comments

5
Log in to join the conversation. Login
neutral's profile picture
neutral2 years ago(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

2
MrTextSpeech's profile picture
MrTextSpeech2 years ago(edited)

what game for?

2
neutral's profile picture
neutral2 years ago(edited)

you simply dont understand, its fine though

1
Bjarnos's profile picture
Bjarnos2 years ago(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.

1
1humano's profile picture
1humano2 years ago(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!

1

Tags

More universal scripts

See all
Universal Script 📌
4.6k
3.0k
Bumped 51 minutes ago
Script hub
9.7k
70.7k
Bumped 2 hours ago
Key System
Script hub
187.0k
1.9M
Bumped 4 hours ago
Key System

Script hub

#13 this week

Verified script badgeAirflow HUB

Script hub
602.2k
52.8k
Bumped 4 hours ago
Script hub
45.6k
11.1k
Bumped 5 hours ago
Key System
Paid

Script hub

#25 this month

Verified script badgeZekeHub - 58 Games, 1,300+ Features