LoadAsset (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Legend26
>Legend26
(No difference)

Revision as of 23:56, 3 January 2012

LoadAsset( number AssetId )
Returns Model
Description: Returns a model in the InsertService containing the loaded asset.
Member of: InsertService
Example
game:GetService("InsertService"):LoadAsset(AssetId).Parent = game.Workspace


Limitations

  • Some scripts are deleted from loaded models. Presumably this is to stop viruses.
  • LoadAsset cannot be used offline (in Studio Play or Studio Start Server/Start Player).
  • Model must be owned by the creator of the place inserting it.

See Also