Overview
Theset_relative_property tool allows you to modify properties based on their current values using mathematical operations. Instead of setting absolute values, you can add, multiply, subtract, divide, or raise properties to powers.
Parameters
Array of instance paths to modify. Each path uses dot notation (e.g.,
game.Workspace.Part1)Name of the property to modify (e.g.,
Position, Transparency, Size)Mathematical operation to perform on the current value:
add- Add value to current valuesubtract- Subtract value from current valuemultiply- Multiply current value by valuedivide- Divide current value by valuepower- Raise current value to the power of value
Value to use in the operation. Must be a number.
For Vector3 or UDim2 properties, specify which component to modify:
X- Modify only X componentY- Modify only Y componentZ- Modify only Z component (Vector3 only)
Vector3 Component Operations
When working with Vector3 properties (Position, Size, Velocity), you can:-
Modify all components: Omit the
componentparameterResult: All X, Y, Z values are doubled -
Modify specific component: Use
componentparameterResult: Only Y value increases by 5
Examples
Moving parts up (Y axis)
Doubling part sizes
Increasing transparency
Shifting along Z axis
Scaling only width
Halving a numeric property
Moving back along path (negative Z)
Operation Reference
Add
Subtract
Multiply
Divide
Power
Use Cases
- Batch position adjustments (moving multiple objects)
- Uniform scaling of multiple parts
- Incremental transparency changes
- Adjusting physics properties (friction, density)
- Offsetting UI elements
- Fine-tuning placement after duplication
Performance Benefits
Common Patterns
Raising all platforms
Lowering all platforms
Doubling all sizes
Making more transparent
Making less transparent
Warnings
Related Tools
- set_calculated_property - More complex formula-based modifications
- mass_set_property - Set absolute values on multiple instances
- set_property - Set a single instance property