function scriptChildModified(E)local R=animNames[E.Name]if R~=nil then configureAnimationSet(E.Name,R)end end script.ChildAdded:connect(scriptChildModified)script.ChildRemoved:connect(scriptChildModified)for E,R in pairs(animNames)do configureAnimationSet(E,R)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
