I’m making a ragdoll system. Basically when you turn the bool value to true it ragdolls your character, but I have a problem with one script. When ragdolling, your character clips into the ground(Legs and arms), so I made a script which turns on the collision of them, but it doesn’t work for me, here’s the script:
if humanoid.Health ~= 0 then
for i,v in pairs(character:GetChildren()) do
if v:IsA("MeshPart") then
v.CanCollide = true
end
end
humanoid.Parent:FindFirstChild("Humanoid").PlatformStand = true
end
humanoid.Parent:FindFirstChild("HumanoidRootPart").CanCollide = false