Insert Service
Summary
Properties
Methods
ApproveAssetId(assetId: number):() |
ApproveAssetVersionId(assetVersionId: number):() |
CreateMeshPartAsync(meshId: ContentId,collisionFidelity: Enum.CollisionFidelity,renderFidelity: Enum.RenderFidelity):MeshPart |
GetCollection(categoryId: number):{any} |
GetFreeDecals(searchText: string,pageNum: number):{any} |
GetFreeDecalsAsync(searchText: string,pageNum: number):{any} |
GetFreeModels(searchText: string,pageNum: number):{any} |
GetFreeModelsAsync(searchText: string,pageNum: number):{any} |
GetLatestAssetVersionAsync(assetId: number):number |
GetUserCategories(userId: User):{any} |
GetUserSets(userId: User):{any} |
LoadAssetVersion(assetVersionId: number):Instance |
API Reference
Properties
Allow Insert Free Models
Methods
Approve Asset Id
Approve Asset Version Id
Create Mesh Part Async
Insert Service: Create Mesh Part Async(
Parameters
meshId:ContentId |
Returns
Get Base Categories
Get Base Sets
Get Collection
Get Free Decals
Get Free Decals Async
Returns
Code Samples
InsertService:GetFreeDecalsAsync
local InsertService = game:GetService("InsertService")
local page = unpack(InsertService:GetFreeDecalsAsync("Cats", 0)) -- Search for "Cats" on Page 1.
for i = 1, page.TotalCount do
local item = page.Results[i]
print("Item #" .. i)
for key, value in pairs(item) do
print(" " .. key .. ": " .. value)
end
endGet Free Models
Get Free Models Async
Returns
Code Samples
InsertService:GetFreeModelsAsync
local InsertService = game:GetService("InsertService")
local page = unpack(InsertService:GetFreeModelsAsync("Cats", 0)) -- Search for "Cats" on Page 1.
for i = 1, page.TotalCount do
local item = page.Results[i]
print("Item #" .. i)
for key, value in pairs(item) do
print(" " .. key .. ": " .. value)
end
endGet Latest Asset Version Async
Get User Categories
Get User Sets
Insert
Load Asset
load Asset
Load Asset Version
Parameters
Returns
Code Samples
InsertService:LoadAssetVersion
local InsertService = game:GetService("InsertService")
local ASSET_VERSION_ID = 296050499
local asset = InsertService:LoadAssetVersion(ASSET_VERSION_ID)
asset.Parent = game.Workspace