LoadAsset (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
No edit summary
>Emess
Redirecting to LoadAsset (Method)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{|
#redirect [[LoadAsset (Method)]]
|<onlyinclude>{{Function|
name                  = LoadAsset
|arguments            = [[Number]] AssetId
|returns              = [[Model]]
|description          = Returns a model in the InsertService containing the loaded asset.
|object              = [[RBX.lua.InsertService_(Service)|InsertService]]
|}}</onlyinclude>
{{clear floats}}
{{Example|
<pre>Game:GetService("InsertService"):LoadAsset( AssetId ).Parent = Workspace</pre>
}}
 
== 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_(Function)|GetCollection]]
 
[[Insert_(Function)|Insert]]

Latest revision as of 19:42, 9 June 2011

Redirect to: