function scriptChildModified(m)local O=animNames[m.Name]if O~=nil then configureAnimationSet(m.Name,O)end end script.ChildAdded:Connect(scriptChildModified)script.ChildRemoved:Connect(scriptChildModified)for m,O in pairs(animNames)do configureAnimationSet(m,O)end

function scriptChildModified(child)
local fileList = animNames[child.Name]
if (fileList ~= nil) then
configureAnimationSet(child.Name, fileList)
end
end

script.ChildAdded:Connect(scriptChildModified)
script.ChildRemoved:Connect(scriptChildModified)


for name, fileList in pairs(animNames) do 
configureAnimationSet(name, fileList)
end
