-- Setup animation objects

function ScriptChildModified(Child)
	local FileList = AnimNames[Child.Name]
	if FileList 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	
