LoadAsset (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
Linked
>Mr Doom Bringer
No edit summary
Line 1: Line 1:
{{Function|
{|
|<onlyinclude>{{Function|
name                  = LoadAsset
name                  = LoadAsset
|arguments            = [[Number]] AssetId
|arguments            = [[Number]] AssetId
Line 5: Line 6:
|description          = Returns a model in the InsertService containing the loaded asset.
|description          = Returns a model in the InsertService containing the loaded asset.
|object              = [[RBX.lua.InsertService_(Service)|InsertService]]
|object              = [[RBX.lua.InsertService_(Service)|InsertService]]
|}}
|}}</onlyinclude>
|}





Revision as of 21:41, 18 July 2010

LoadAsset( Number AssetId )
Returns Model
Description: Returns a model in the InsertService containing the loaded asset.


Example
Game:GetService("InsertService"):LoadAsset( AssetId ).Parent = 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 public domain if loaded from a Server-side script.
  • Model must be public domain or owned by player for a Local script.

See Also

GetCollection

Insert