Aprenda
Classe do mecanismo
InsertService
Não criável
Serviço

*Este conteúdo é traduzido por IA (Beta) e pode conter erros. Para ver a página em inglês, clique aqui.


Resumo
Propriedades
Métodos
ApproveAssetId(assetId: number):()
Obsoleto
ApproveAssetVersionId(assetVersionId: number):()
Obsoleto
CreateMeshPartAsync(meshId: ContentId,collisionFidelity: Enum.CollisionFidelity,renderFidelity: Enum.RenderFidelity):MeshPart
GetBaseSets():{any}
Obsoleto
GetCollection(categoryId: number):{any}
Obsoleto
GetFreeDecals(searchText: string,pageNum: number):{any}
Obsoleto
GetFreeDecalsAsync(searchText: string,pageNum: number):{any}
GetFreeModels(searchText: string,pageNum: number):{any}
Obsoleto
GetFreeModelsAsync(searchText: string,pageNum: number):{any}
GetUserCategories(userId: User):{any}
Obsoleto
GetUserSets(userId: User):{any}
Obsoleto
Insert(instance: Instance):()
Obsoleto
loadAsset(assetId: number):Instance
Obsoleto
Membros herdados

Referência API
Propriedades
AllowInsertFreeModels
Obsoleto

Métodos
ApproveAssetId
Obsoleto

ApproveAssetVersionId
Obsoleto

CreateMeshPartAsync
Rendimentos
Recursos: Basic
InsertService:CreateMeshPartAsync(
meshId:ContentId, collisionFidelity:Enum.CollisionFidelity, renderFidelity:Enum.RenderFidelity
Parâmetros
meshId:ContentId
collisionFidelity:Enum.CollisionFidelity
renderFidelity:Enum.RenderFidelity
Devolução

GetBaseCategories
Obsoleto

GetBaseSets
Obsoleto

GetCollection
Obsoleto

GetFreeDecals
Obsoleto

GetFreeDecalsAsync
Rendimentos
Recursos: AssetRead
InsertService:GetFreeDecalsAsync(
searchText:string, pageNum:number
Parâmetros
searchText:string
pageNum:number
Devolução
Amostras de código
InsertService:GetFreeDecalsAsync
local InsertService = game:GetService("InsertService")
local page = unpack(InsertService:GetFreeDecalsAsync("Gatos", 0)) -- Procure por "Gatos" na Página 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
end

GetFreeModels
Obsoleto

GetFreeModelsAsync
Rendimentos
Recursos: AssetRead
InsertService:GetFreeModelsAsync(
searchText:string, pageNum:number
Parâmetros
searchText:string
pageNum:number
Devolução
Amostras de código
InsertService:GetFreeModelsAsync
local InsertService = game:GetService("InsertService")
local page = unpack(InsertService:GetFreeModelsAsync("Gatos", 0)) -- Procure por "Gatos" na Página 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
end

GetLatestAssetVersionAsync
Rendimentos
Recursos: AssetRead
InsertService:GetLatestAssetVersionAsync(assetId:number):number
Parâmetros
assetId:number
Devolução

GetUserCategories
Obsoleto

GetUserSets
Obsoleto

Insert
Obsoleto

LoadAsset
Rendimentos
Recursos: LoadOwnedAsset
InsertService:LoadAsset(assetId:number):Instance
Parâmetros
assetId:number
Devolução
Amostras de código
InserirServiço:CarregarAtivo
local InsertService = game:GetService("InsertService")
local ASSET_ID = 82353
-- Carrega o ativo com o ID fornecido local asset = InsertService:LoadAsset(ASSET_ID)
-- Define o pai do ativo para o espaço de trabalho asset.Parent = workspace

loadAsset
Obsoleto

LoadAssetVersion
Rendimentos
Recursos: LoadOwnedAsset
InsertService:LoadAssetVersion(assetVersionId:number):Instance
Parâmetros
assetVersionId:number
Devolução
Amostras de código
InsertService:CarregarVersãoDoAtivo
local InsertService = game:GetService("InsertService")
local ASSET_VERSION_ID = 296050499
local asset = InsertService:LoadAssetVersion(ASSET_VERSION_ID)
asset.Parent = game.Workspace

©2026 Roblox Corporation, Roblox, o logotipo Roblox e Powering Imagination estão entre nossas marcas registradas e não registradas nos EUA e em outros países.