What is the best way to use PreloadAsync and make a Loading Screen using it

I would like to know the best way to use PreloadAsync and how to use it to make a Loading Screen
and is it possible to show the name of what is being loaded? (Decal, Mesh, etc…)

Loading screens should be located in replicated first, which basically means that those things are rendered into the game before any other things(for example, scripts in ReplicatedFirst will run before any other script). PreloadAsync wouldn’t help in this case.

PreloadAsync is best used by using it.

The concept here is more to think about what would be appropriate to preload or leave to be downloaded in the background. The most immediate answer that comes to mind is “anything that the player should see immediately”. If you have any textures, audio or other assets on your loading screen, perhaps maybe the first page of your menu, that’s PreloadAsync material.

Roblox technically does not have the concept of preloading with PreloadAsync. If you pass an asset that hasn’t previously been used in the game before but you will use later and want it to show instantly, it would be a proper case of preloading. Otherwise, the realistic term for it is prioritising certain assets for the client to download first over others.

PreloadAsync will not give you the type of asset currently being downloaded. You are able to pass a callback which will return a AssetFetchSuccess Enum as well as the ContentId of the asset, but that information isn’t enough to determine what is being loaded.

3 Likes