LoadAsset (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg
→‎Limitations: added permission limitations
>Emess
Redirecting to LoadAsset (Method)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Function|
#redirect [[LoadAsset (Method)]]
name                  = LoadAsset
|arguments            = [[Number]] AssetId
|returns              = [[Model]]
|description          = Returns a model in the InsertService containing the loaded asset.
|object              = InsertService
|}}
 
 
 
{{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: