Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my precious NPC ragdoll system not work? [ANSWERED]

Asked by 4 years ago
Edited 4 years ago

i'm gonna give ya guys the straight and narrow.

so I successfully made a sexy ragdoll system for players right? well, after this success it offered me confidence, instantly my balls grew larger and started getting to work trying to make an NPC ragdoll system with my dummy r15 model named tim! so naturally I use the same joint system for tim but I found out quickly that making tim ragdoll is a pain in the arse!

I change tim's HumanoidStateType like dese

model:WaitForChild("Humanoid"):ChangeState(Enum.HumanoidStateType.Physics)

annnnnnnnnnnnd this keeps happening ???????????? https://gyazo.com/2ade53f48b725ba08449e4eb83b6888a

now if you're a normal human being you'd ask the same question; 'what the BLOODY HELL is wrong with this rig why won't tim go down!?' and after 10 minutes of whining and screaming and pulling at my eyebrows, I figured it was probably the collisions of tim's uppertorso, head and lowertorso

these bastards can never be set to can-collide false, doesn't matter what you do https://gyazo.com/8a306666c719def4fcf9ee49dba124ae

so I turned to making custom collisions using PhysicsService like dese

local function setCollisions(model)
    print("setting collisions")
    PhysicsService:CreateCollisionGroup("bodyParts")
    for i, v in pairs(model:GetChildren()) do
        if v:IsA("BasePart") then
            PhysicsService:SetPartCollisionGroup(v, "bodyParts")
        end
    end
    PhysicsService:CollisionGroupSetCollidable("bodyParts", "bodyParts", false)
end

but this still doesn't work, same problem. https://gyazo.com/2ade53f48b725ba08449e4eb83b6888a

Please help! tim wants to go down so bad I just know it!

much appreciated

1 answer

Log in to vote
0
Answered by 4 years ago

Setting the HumanoidStateType on the server worked.

Ad

Answer this question