Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/code-and-relax/robloxstudio-mcp/llms.txt

Use this file to discover all available pages before exploring further.

Description

Creates a new Roblox object instance with a specified class name, parent, and initial properties. This tool allows you to set properties immediately upon creation, which is more efficient than creating an object and then setting properties separately.

Parameters

className
string
required
Roblox class name (e.g., “Part”, “Script”, “Folder”)
parent
string
required
Path to the parent instance (e.g., “game.Workspace”)
name
string
Optional name for the new object
properties
object
Properties to set on creation. Keys are property names, values are the property values.

Example

{
  "className": "Part",
  "parent": "game.Workspace",
  "name": "Platform",
  "properties": {
    "Size": {"X": 10, "Y": 1, "Z": 10},
    "Position": {"X": 0, "Y": 5, "Z": 0},
    "BrickColor": "Bright blue",
    "Material": "SmoothPlastic",
    "Anchored": true
  }
}

Use Cases

  • Creating fully configured objects in a single operation
  • Building game elements with specific properties from the start
  • Efficient object creation when multiple properties need to be set
  • Scripting complex scene setups