IsA("MeshPart")

I’m trying to make a ragdoll, and this part won’t work, but it doesn’t give an error

for k,n in pairs(Character:GetChildren()) do if n:IsA(“MeshPart”) then
n.CanCollide = false
end
end

I tried doing Part in the IsA part, but that didn’t work either. I also saw that the r15 character parts are MeshParts, so that’s why I tried MeshParts

for k, n in pairs(Character:GetChildren()) do
    if n:IsA(“BasePart”) then
        n.CanCollide = false
    end
end

does this work?

No, it doesn’t work and doesn’t give any errors

sejkfhnsdjkfjsbkmgbjskmndsmg 30 retcarahc

Make sure your character is loaded

It fires when the character dies, so the character is loaded already

Does it wait until it loads? Because if it fires when character dies, then it probably can lose all its parts for a moment