1 min read

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

NameValueDescription
Constant0The segment starting at this key will constantly evaluate to the value set at this key.
Linear1The segment starting at this key will evaluate using a linear interpolation at this key and the value at the next key.
Cubic2The 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.

FieldValue
value0

Linear

The segment starting at this key will evaluate using a linear interpolation at this key and the value at the next key.

FieldValue
value1

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.

FieldValue
value2