LoadAsset (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg
→‎Limitations: Studio limit
>Emess
Redirecting to LoadAsset (Method)
 
(10 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).
 
== See Also ==
[[GetCollection_(Function)|GetCollection]]
 
[[Insert_(Function)|Insert]]

Latest revision as of 19:42, 9 June 2011

Redirect to: