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

CanCollide bugging and turning back on?

Asked by 6 years ago

I have this script:

local z = script.Parent.Parent
script.Parent.Event:connect(function()
    for i,v in pairs(z:GetChildren()) do
        if v.ClassName == "MeshPart" or v.ClassName == "Part" then
            v.CanCollide = false
        end
    end
end)

Everytime in game the LowerTorso,Head and UpperTorso of z turn back to CanCollide and it's making my animation bug in the ground. How do I fix this?

0
I don't believe you can change CanCollide on player's character (otherwise you would probably fall through the ground) justoboy13 153 — 6y
0
Probably a script or a corescript interfering brokenVectors 525 — 6y

Answer this question