Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
InstanceCounts — openapi
Represents the count of various instance types within an asset. See Instance.
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| script | integer | false | The number of Script instances. |
| meshPart | integer | false | The number of MeshPart instances. |
| animation | integer | false | The number of Animation instances. |
| decal | integer | false | The number of Decal instances. |
| audio | integer | false | The number of Audio instances. |
| tool | integer | false | The number of Tool instances. |
Complete Schema
{
"type": "object",
"properties": {
"script": {
"type": "integer",
"description": "The number of Script instances.",
"format": "int32"
},
"meshPart": {
"type": "integer",
"description": "The number of MeshPart instances.",
"format": "int32"
},
"animation": {
"type": "integer",
"description": "The number of Animation instances.",
"format": "int32"
},
"decal": {
"type": "integer",
"description": "The number of Decal instances.",
"format": "int32"
},
"audio": {
"type": "integer",
"description": "The number of Audio instances.",
"format": "int32"
},
"tool": {
"type": "integer",
"description": "The number of Tool instances.",
"format": "int32"
}
},
"additionalProperties": false,
"description": "Represents the count of various instance types within an asset.\nSee [Instance](https://create.roblox.com/docs/reference/engine/classes/Instance).",
"nullable": true
}