Description
Sets or updates an attribute on an instance. Supports all Roblox attribute types including primitives and complex types. Complex types should be provided in the serialized format.Endpoint
Parameters
The path to the instance (e.g., “Workspace.Part” or “ReplicatedStorage.Config”)
The name of the attribute to set
The value to set. For complex types, use the serialized format with
type and value fields.Response
Returns
true if the attribute was set successfullyError message if the instance path could not be resolved
Complex Type Format
When setting complex types, use the serialized format:- Vector3:
{ type: "Vector3", value: [x, y, z] } - Vector2:
{ type: "Vector2", value: [x, y] } - Color3:
{ type: "Color3", value: [r, g, b] } - UDim2:
{ type: "UDim2", value: [xScale, xOffset, yScale, yOffset] } - UDim:
{ type: "UDim", value: [scale, offset] } - NumberRange:
{ type: "NumberRange", value: [min, max] } - CFrame:
{ type: "CFrame", value: [x, y, z, rx, ry, rz, ux, uy, uz, lx, ly, lz] }