Skip to main content

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

Build docs developers (and LLMs) love