Run it
Copy the script and paste it into your executor.
npcs = {}
RunService = :()
interval =
lastUpdate =
OrgDestroyHeight = -
(npc)
_, part (npc:())
part:()
part.CanCollide =
part.CanTouch =
(npc)
humanoid = npc:()
humanoid
humanoid.JumpPower =
humanoid.WalkSpeed =
humanoid:(.HumanoidStateType.Dead, )
humanoid.Health = -.huge
rootPart = npc:()
rootPart
(npc.Name .. .. (rootPart.Anchored))
attackScript = npc:()
attackScript
attackScript.Disabled =
weapon = npc:()
weapon weapon:()
weapon:()
(npc)
()
_, obj (:())
obj:() .Players:(obj.Parent)
npcRoot = obj.Parent:()
npcRoot
(obj.Parent)
npcs[npcRoot] = {
humanoid = obj,
lastSafePosition = npcRoot.Position
}
()
.DescendantAdded:((obj)
obj:() .Players:(obj.Parent)
npcRoot = obj.Parent:()
npcRoot
(obj.Parent)
npcs[npcRoot] = {
humanoid = obj,
lastSafePosition = npcRoot.Position
}
)
RunService.Heartbeat:((deltaTime)
lastUpdate = lastUpdate + deltaTime
lastUpdate >= interval
lastUpdate =
root, data (npcs)
root root.Parent data.humanoid data.humanoid.Health >
rayOrigin = root.Position
rayDirection = .(, -, )
raycastParams = RaycastParams.()
raycastParams.FilterDescendantsInstances = {root.Parent}
raycastParams.FilterType = .RaycastFilterType.Blacklist
rayResult = :(rayOrigin, rayDirection, raycastParams)
rayResult rayResult.Instance
data.lastSafePosition = root.Position
root.Position.Y <= OrgDestroyHeight +
root.CFrame = .(data.lastSafePosition + .(, , ))
root.Velocity = .zero
)This script is designed to disable NPC abilities and make them nocollision, preventing them from blocking players or interacting with objects. It ensures that NPCs: ✔ Can't jump (sets WalkSpeed to an high value and JumpPower to 0). ❔ Can't attack (disables attack scripts and removes weapons). ✔ Have no physical collisions (sets CanCollide = false and CanTouch = false). ✔ Automatically apply these changes to new NPCs when they spawn. However, this script can also be used to troll innocent people. In short, this script it requires the player to use xray and float or airwalk underground (via commands in Infinite Yield or Nameless Admin) to work properly. Enjoy the script! People who have discovered some issues honorable mention: @markeveionevans08