LoadAsset (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Legend26 |
>Sncplay42 clarity |
||
Line 13: | Line 13: | ||
* Some scripts are deleted from loaded models. Presumably this is to stop viruses. | * 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). | * LoadAsset cannot be used offline (in Studio Play or Studio Start Server/Start Player). | ||
* Model must be | * Model must be in the inventory of the creator of the place inserting it. | ||
== See Also == | == See Also == |
Revision as of 19:32, 4 January 2012
![]() | |
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 in the inventory of the creator of the place inserting it.