1 min read

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

NameTypeRequiredDescription
scriptintegerfalseThe number of Script instances.
meshPartintegerfalseThe number of MeshPart instances.
animationintegerfalseThe number of Animation instances.
decalintegerfalseThe number of Decal instances.
audiointegerfalseThe number of Audio instances.
toolintegerfalseThe 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
}