Overview
Themass_set_property tool allows you to efficiently set the same property to the same value across multiple Roblox instances in a single operation. This is ideal for batch updates like hiding multiple parts, anchoring multiple objects, or changing colors across a group.
Parameters
Array of instance paths to modify. Each path uses dot notation (e.g.,
game.Workspace.Part1)Name of the property to set on all instances (e.g.,
Transparency, Anchored)Value to set the property to. Must match the property’s expected type.
Vector3 Limitation
Data Type Warning
Property values must match the expected data type:
- Numbers: Use plain numbers (e.g.,
0.5,100) - Booleans: Use
trueorfalse - Strings: Use quoted strings
- BrickColor: Use string with BrickColor name
- Vector3: NOT SUPPORTED - use individual
set_propertycalls
Examples
Making multiple parts transparent
Anchoring multiple objects
Changing material on multiple parts
Disabling CanCollide on multiple parts
Performance Considerations
Maximum Batch Size
While there’s no strict limit, it’s recommended to process batches of 50-100 instances at a time for optimal performance and error handling.
Use Cases
- Bulk property changes across level objects
- Setting default properties for newly created instances
- Hiding/showing multiple UI elements
- Batch physics property updates
- Standardizing colors or materials across objects
Related Tools
- set_property - Set a property on a single instance
- mass_get_property - Get the same property from multiple instances
- set_relative_property - Modify properties relative to current values
- batch_operations - Execute multiple different operations at once