Preload (Method)

From Legacy Roblox Wiki
Revision as of 20:55, 27 December 2010 by >LPGhatguy (Rewording)
Jump to navigationJump to search
Preload( string asset )
Returns nil
Description: Downloads the requested asset to the client and prepares it for use.
Member of: ContentProvider


Example
Can be used to load an asset (common assets loaded are images) so it doesn't take any time when shown as textures or decals.
Game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=2453543")