Skip to main content

Description

Creates a new Roblox object instance with a specified class name and parent. This is the basic object creation tool that does not set any initial properties.

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. If not provided, Roblox will use the default class name.

Example

{
  "className": "Part",
  "parent": "game.Workspace",
  "name": "MyPart"
}

Use Cases

  • Creating basic building blocks like Parts, Folders, or Scripts
  • Quick object instantiation when properties will be set later
  • Building hierarchical structures in the workspace
  • Prototyping and testing object layouts

Build docs developers (and LLMs) love