How to solve this?


Basically, Humanoids keep climbing each other. I tried different ways - disabling friction, increasing mass, but nothing worked properly. Any tips?

This issue occurs because Humanoids have climbing behaviors enabled by default and collide with one another, causing them to treat other NPCs as climbable surfaces.

Solution 1: Disable Climbing State (Simplest)

Use SetStateEnabled to completely disable the climbing ability for your zombies. This is often the most effective “quick fix.”

-- For each zombie/NPC you create:
local humanoid = zombie:WaitForChild("Humanoid")
humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)

If you are spawning zombies dynamically, use a handler like this:

workspace.Enemies.ChildAdded:Connect(function(child)
    -- Ensure it's a zombie and has a humanoid
    local humanoid = child:FindFirstChildOfClass("Humanoid")
    if humanoid then
        humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
    end
end)

Solution 2: Collision Groups (Most Robust)

By placing NPCs into a specific Collision Group and disabling internal collisions, you remove the physical “platform” they use to climb each other.

local PhysicsService = game:GetService("PhysicsService")

-- Create the collision group (run this once)
PhysicsService:RegisterCollisionGroup("NPCs")

-- Set NPCs so they don't collide with each other
PhysicsService:CollisionGroupSetCollidable("NPCs", "NPCs", false)

-- Apply to all parts of an NPC
function setupNPC(npc)
    for _, part in pairs(npc:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CollisionGroup = "NPCs"
        end
    end
end

Solution 3: MaxSlopeAngle (Preventing Surface Incline)

Setting the MaxSlopeAngle to 0 prevents the Humanoid from walking up or “climbing” any inclined surface, including the curved hitboxes of other NPCs.

zombie.Humanoid.MaxSlopeAngle = 0


Note: You can combine these methods depending on your game’s needs. For instance, if you want NPCs to still push each other (physics collision) but never climb, Solution 1 and 3 are your best bet. If you don’t mind them phasing through each other to prevent crowding, Solution 2 is the way to go.

Related Discussions & Similar Issues


Hello, first of all, thank you.

I took your three ideas and combined them into a kind of crazy solution. To prevent any type of “stacking” or “climbing” behavior between NPCs, I adjusted the MaxSlopeAngle so they can’t treat other characters as walkable surfaces, and I completely removed the ClimbingState to stop them from trying to scale obstacles or each other.

On top of that, I built a custom collision system where every NPC has a tall cylindrical collider that only interacts with other NPCs. This way, they keep proper spacing and physically block one another, which prevents them from piling up, overlapping, or stepping on top of each other during movement.

You’re welcome, and thanks for sharing the final implementation.
I’m sure it’ll help others with similar issues! :grin: