Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
KeyInterpolationMode
Describes the interpolation method for a FloatCurve or RotationCurve segment between the key for which this mode is set and the next key in the curve.
Items
| Name | Value | Description |
|---|---|---|
| Constant | 0 | The segment starting at this key will constantly evaluate to the value set at this key. |
| Linear | 1 | The segment starting at this key will evaluate using a linear interpolation at this key and the value at the next key. |
| Cubic | 2 | The segment starting at this key will evaluate using cubic interpolation of this key value using its right tangent and the next key value and its left tangent. |
Constant
The segment starting at this key will constantly evaluate to the value set at this key.
| Field | Value |
|---|---|
| value | 0 |
Linear
The segment starting at this key will evaluate using a linear interpolation at this key and the value at the next key.
| Field | Value |
|---|---|
| value | 1 |
Cubic
The segment starting at this key will evaluate using cubic interpolation of this key value using its right tangent and the next key value and its left tangent.
| Field | Value |
|---|---|
| value | 2 |