Overview
RbxGenie providesmass_* variants of several tools for efficient batch operations. These tools process multiple items in a single call, reducing overhead and improving performance when working with many instances.
Bulk operations process items sequentially. Each item’s result is independent, so one failure won’t prevent others from processing.
Mass Set Property
Set the same property on multiple instances at once.Basic Usage
Complex Properties
Handling Partial Failures
Mass Get Property
Retrieve the same property from multiple instances.Collect Data for Analysis
Mass Create Objects
Create multiple instances in one operation.Simple Creation
Create in Different Locations
Mass Create with Properties
Create multiple configured instances efficiently.Create Colored Parts
Create Scripts in Batch
Mass Duplicate
Duplicate multiple instances at once.Simple Duplication
Duplicate to New Parent
Duplicate with Offset
Each duplicate will be offset by the specified vector. The offset applies to both Position and CFrame properties.
Common Patterns
Initialize Multiple Objects
Combine creation and property setting for efficient setup:- Pattern
- Example
- Use
mass_create_objects_with_propertiesto create configured instances - Follow up with
mass_set_propertyif you need to adjust anything
Clone Template Multiple Times
- Pattern
- Example
- Create a template instance with desired properties
- Use
mass_duplicateto create multiple copies - Use
mass_set_propertyto customize each copy
Bulk Property Modifications
- Pattern
- Example
- Use
search_objectsorget_taggedto find target instances - Extract paths from results
- Use
mass_set_propertyormass_get_property
Performance Considerations
Batch Size
Batch Size
While bulk operations are efficient, avoid processing thousands of items in a single call. Consider breaking very large operations into multiple batches of 50-200 items.
Error Handling
Error Handling
Each item in a bulk operation is processed independently. Check the response for per-item success/failure status.
Property Types
Property Types
When using
mass_set_property, ensure all target instances support the property you’re setting. Unsupported properties will fail for those instances.Undo Support
Undo Support
Bulk operations generate a single undo waypoint, allowing you to revert all changes with one undo action.
Next Steps
Basic Operations
Learn single-instance operations
Best Practices
Follow recommended patterns