You can preload images by pointing to a Decal object or asset string like "rbxassetid://272172789",
You can only preload sounds by pointing to a Sound object. This is annoying, especially when I have a list of sounds/songs I want to preload from ReplicatedFirst, so playing one doesn’t have a delay at the start
local ContentProvider = game:GetService("ContentProvider")
local assets = {
"rbxassetid://272172789", --preload xbox controller spritesheet
"http://www.roblox.com/asset/?id=111124523", --preload sound (doesn't work)
script:WaitForChild('Sound1'), --preload sound (works)
}
ContentProvider:PreloadAsync(assets)
Output:
ContentProvider:PreloadAsync() failed for http://www.roblox.com/asset/?id=111124523