Description
Sets a property value by evaluating a Lua expression that has access to the current property value. This is useful for transformations, calculations, or conditional updates based on the existing value.HTTP Endpoint
Parameters
The path to the instance (e.g., “game.Workspace.Part”)
The name of the property to set
A Lua expression that will be evaluated. The current property value is available as
current. The result of the expression becomes the new value.Response
Returns
true if the property was successfully setThe new value that was set, serialized to JSON format
Error message if the operation failed (path not found, property doesn’t exist, expression error, etc.)
Code Examples
Double a numeric value
Increment a number
Conditional transformation
String manipulation
Math operations
Clamp a value
Example Response
Success
Expression error
Evaluation error
Notes
- The expression must be a valid Lua expression that returns a value
- The current property value is available as the
currentvariable - You have access to standard Lua functions like
math.clamp,math.min,math.max, etc. - You can construct new Roblox data types like
Vector3.new(),Color3.new(), etc. - The expression is evaluated in a sandboxed environment for security