PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Preload

Usually, content is loaded only when it starts being used. That explains why it often takes a moment for an image to appear in a GUI, or a mesh to appear in a part, or why a sound doesn’t play for the first time. All because the asset has not yet finished loading. Preload is used to load this content beforehand, so that it works instantly.

Parameters

Name Type Default Description

Returns

Return Type Summary

Code Samples


ContentProvider:Preload

This example will preload the asset with id “12222058” when a LocalPlayer loads a game.

Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=12222058")