-- Runners


function Sound.Init()
	for _,v in pairs(game.ReplicatedStorage.Assets.Sounds:GetDescendants()) do
		if v:IsA("Sound") then
			local Name = v.Name:lower()
			
			if Map[Name] then warn("Two sound with the same name '" .. Name .. "'.") end
			Map[Name] = v
			
			if v.Parent:IsA("Folder") then
				local Name = v.Parent.Name:lower()
				
				if not Groups[Name] then Groups[Name] = {} end
				
				table.insert(Groups[Name], v)
			end
		end
	end
end

Sound.ClientInit = Sound.Init

return Sound
