component_compose
Compose a complete Roblox component—door, coin, weapon, chest, NPC, teleporter, or light—into Studio with nested parts, materials, constraints, lights, sounds, prompts, and behavior script included.
Instructions
Visual Construction: Composes a complete, structured Roblox game component (Interactive Door, Collectible Coin, Weapon Tool, Chest, NPC, Teleporter, Light Fixture) into Studio hierarchy with correct nested parts, materials, constraints, lights, sounds, proximity prompts, and decoupled behavior script without manual boilerplate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the component Model / Instance | |
| position | No | World position [x, y, z] for the component | |
| attributes | No | Custom attributes to set on the component (e.g. IsLocked, Value, PromptActionText) | |
| parentPath | No | Target DataModel parent path (default: Workspace) | |
| templateId | Yes | The component template ID to construct | |
| includeBehaviorScript | No | Whether to include clean decoupled behavior script (default: true) |