AudioPlayer.preloadAudio=function(u)local r={}for u,m in pairs(u)do local S=Instance.new("\083\111\117\110\100")S.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..m S.Name=u S.Parent=SoundService table.insert(r,S)end local m,S=pcall(function()ContentProvider:PreloadAsync(r)end)end
-- Function to preload audio assets
AudioPlayer.preloadAudio = function(assetArray)
	local audioAssets = {}

	-- Add new "Sound" assets to "audioAssets" array
	for name, audioID in pairs(assetArray) do
		local audioInstance = Instance.new("Sound")
		audioInstance.SoundId = "rbxassetid://" .. audioID
		audioInstance.Name = name
		audioInstance.Parent = SoundService

		table.insert(audioAssets, audioInstance)
	end

	local success, assets = pcall(function()
		ContentProvider:PreloadAsync(audioAssets)
	end)
end
