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?