PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetCollection

Returns the most recently uploaded models in the specified category.

Parameters

Name Type Default Description

Returns

Return Type Summary

Code Samples


InsertService:GetCollection

The format of the returned table is as follows:

{ -- Array
   { -- Table
      AssetId = <Integer>, -- for use with InsertService::LoadAsset()
      AssetSetId = <Integer>, -- source set
      AssetVersionId = <Integer>, -- for use with InsertService::LoadAssetVersion()
      IsTrusted = <Integer>, -- "trusted" flag
      Name = <String>, -- model name
      CreatorName = <String> -- creator name
  }
}
local tab = game:GetService("InsertService"):GetCollection(catinfo.categoryId) 
for ndx,assetinfo in ipairs(tab) do 
     print(ndx) 
     for k,v in pairs(assetinfo) do 
          print(k, "=", v) 
     end 
end