function scriptChildModified(M)local V=animNames[M.Name]if V~=nil then configureAnimationSet(M.Name,V)end end script.ChildAdded:Connect(scriptChildModified)script.ChildRemoved:Connect(scriptChildModified)for M,V in pairs(animNames)do configureAnimationSet(M,V)end
-- Setup animation objects
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
