Ability to preload sounds by assetid

Currently, you have to have a reference to a sound object to preload it with :PreloadAsync. You can load textures by assetid string with this function, but not sounds.

However, I don’t want to put references to my objects in my separate preload script, as the objects are in multiple places and I just want to preload a few images/sounds in my ReplicatedFirst loading screen.

I need to do this for some other images/sounds to load instantly in PlayerGui right after the loading screen.

(PlayerGui doesn’t even load when the CharacterAutoLoads=false / is in the ReplicatedFirst loading screen, so I can’t even reference the objects for PreloadAsync)

https://developer.roblox.com/api-reference/function/ContentProvider/PreloadAsync

15 Likes