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?

2 comments
I don't believe you can change CanCollide on player's character (otherwise you would probably fall through the ground)
Probably a script or a corescript interfering