Creates a new Roblox instance with specified properties, attributes, and source code. This is ideal for creating fully configured objects in a single operation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nnaridz/RbxGenie/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Parameters
The path to the parent instance where the new object will be created.
The Roblox class name of the instance to create.
Key-value pairs of properties to set on the new instance. Properties are applied using ValueSerializer to handle complex types.
Key-value pairs of attributes to set on the new instance. Supports typed values using the ValueSerializer format.
Source code to set (only applies to LuaSourceContainer instances like Script, LocalScript, ModuleScript).
Response
Returns
true if the object was created successfully.The full path to the newly created object.
The name of the newly created object.
Error message if the operation failed.
Examples
Create a Part with Properties
Create a Script with Source Code
Create an Object with Attributes
Create a Complex Object
Notes
- Properties are applied before the object is parented, ensuring all settings take effect
- Invalid properties are silently ignored (wrapped in pcall)
- For scripts, the source code is set before parenting
- Use
create_objectfor simple object creation without properties - For bulk creation, use
mass_create_objects_with_properties