smart_duplicate
Automate duplication in Roblox Studio with customized naming, positioning, rotation, scaling, and property variations for efficient object creation.
Instructions
Smart duplication with automatic naming, positioning, and property variations
Input Schema
Name | Required | Description | Default |
---|---|---|---|
count | Yes | Number of duplicates to create | |
instancePath | Yes | Path to the instance to duplicate | |
options | No |
Input Schema (JSON Schema)
{
"properties": {
"count": {
"description": "Number of duplicates to create",
"type": "number"
},
"instancePath": {
"description": "Path to the instance to duplicate",
"type": "string"
},
"options": {
"properties": {
"namePattern": {
"description": "Name pattern with {n} placeholder (e.g., \"Button{n}\")",
"type": "string"
},
"positionOffset": {
"description": "X, Y, Z offset per duplicate",
"items": {
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
},
"propertyVariations": {
"description": "Property name to array of values",
"type": "object"
},
"rotationOffset": {
"description": "X, Y, Z rotation offset per duplicate",
"items": {
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
},
"scaleOffset": {
"description": "X, Y, Z scale multiplier per duplicate",
"items": {
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
},
"targetParents": {
"description": "Different parent for each duplicate",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"required": [
"instancePath",
"count"
],
"type": "object"
}