function ScriptChildModified(g)local q=AnimNames[g.Name]if q then ConfigureAnimationSet(g.Name,q)end end script.ChildAdded:connect(ScriptChildModified)script.ChildRemoved:connect(ScriptChildModified)for g,q in pairs(AnimNames)do ConfigureAnimationSet(g,q)end
-- 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
