extends Instance
Class fields
| Field | XML type | Value |
|---|---|---|
Name | string | InsertService |
summary | string | A service used to insert objects stored on the website into the game. |
Properties
1AllowInsertFreeModels
bool| Field | XML type | Value |
|---|---|---|
Name | string | AllowInsertFreeModels |
Functions
14ApproveAssetId
(assetId: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | ApproveAssetId |
Deprecated | bool | true |
summary | string | Deprecated |
ApproveAssetVersionId
(assetVersionId: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | ApproveAssetVersionId |
Deprecated | bool | true |
summary | string | Deprecated |
Insert
(instance: Instance) → void| Field | XML type | Value |
|---|---|---|
Name | string | Insert |
summary | string | Inserts the Instance into the workspace. It is recommended to use Instance.Parent = game.Workspace instead, as this can cause issues currently. |
SetAdvancedResults
(enable: bool, user: bool = …) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetAdvancedResults |
SetAssetUrl
(assetUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetAssetUrl |
SetAssetVersionUrl
(assetVersionUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetAssetVersionUrl |
SetBaseCategoryUrl
(baseSetsUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetBaseCategoryUrl |
SetBaseSetsUrl
(baseSetsUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetBaseSetsUrl |
SetCollectionUrl
(collectionUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetCollectionUrl |
SetFreeDecalUrl
(freeDecalUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetFreeDecalUrl |
SetFreeModelUrl
(freeModelUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetFreeModelUrl |
SetTrustLevel
(trustLevel: float) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetTrustLevel |
SetUserCategoryUrl
(userSetsUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetUserCategoryUrl |
SetUserSetsUrl
(userSetsUrl: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | SetUserSetsUrl |
Yield functions
11GetBaseCategories
() → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetBaseCategories |
Deprecated | bool | true |
summary | string | Deprecated. Use GetBaseSets() instead. |
GetBaseSets
() → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetBaseSets |
summary | string | Returns a table containing a list of the various setIds that are ROBLOX approved. <a href="http://wiki.roblox.com/index.php/Sets" target="_blank">More info on sets</a> |
GetCollection
(categoryId: int) → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetCollection |
summary | string | Returns a table for the assets stored in the category. A category is an setId from www.roblox.com that links to a set. <a href="http://wiki.roblox.com/index.php?title=API:Class/InsertService/GetCollection" target="_blank">More info on table format</a>. <a href="http://wiki.roblox.com/index.php/Sets" target="_blank">More info on sets</a> |
GetFreeDecals
(searchText: string, pageNum: int) → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetFreeDecals |
GetFreeModels
(searchText: string, pageNum: int) → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetFreeModels |
GetLatestAssetVersionAsync
(assetId: int) → int| Field | XML type | Value |
|---|---|---|
Name | string | GetLatestAssetVersionAsync |
GetUserCategories
(userId: int) → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetUserCategories |
Deprecated | bool | true |
summary | string | Deprecated. Use GetUserSets() instead. |
GetUserSets
(userId: int) → Array| Field | XML type | Value |
|---|---|---|
Name | string | GetUserSets |
summary | string | Returns a table containing a list of the various setIds that correspond to argument 'userId'. <a href="http://wiki.roblox.com/index.php/Sets" target="_blank">More info on sets</a> |
LoadAsset
(assetId: int) → Instance| Field | XML type | Value |
|---|---|---|
Name | string | LoadAsset |
summary | string | Returns a Model containing the Instance that resides at AssetId on the web. This call will also yield the script until the model is returned. Script execution can still continue, however, if you use a <a href="http://wiki.roblox.com/index.php?title=Coroutine" target="_blank">coroutine</a>. |
LoadAssetVersion
(assetVersionId: int) → Instance| Field | XML type | Value |
|---|---|---|
Name | string | LoadAssetVersion |
summary | string | Similar to LoadAsset, but instead an AssetVersionId is passed in, which refers to a particular version of the asset which is not neccessarily the latest version. |
loadAsset
(assetId: int) → Instance| Field | XML type | Value |
|---|---|---|
Name | string | loadAsset |
Events
6InsertError
(key: string, message: string) → void| Field | XML type | Value |
|---|---|---|
Name | string | InsertError |
InsertReady
(key: string, instance: Instance) → void| Field | XML type | Value |
|---|---|---|
Name | string | InsertReady |
InsertRequest
(key: string, contentId: Content) → void| Field | XML type | Value |
|---|---|---|
Name | string | InsertRequest |
InsertRequestAsset
(key: string, assetId: int, userId: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | InsertRequestAsset |
InsertRequestAssetVersion
(key: string, assetVersionId: int, userId: int) → void| Field | XML type | Value |
|---|---|---|
Name | string | InsertRequestAssetVersion |
InternalDelete
(instance: Instance) → void| Field | XML type | Value |
|---|---|---|
Name | string | InternalDelete |