Skip to content

NumberCurve

Type

NumberCurve is an immutable curve of numbers from time 0 to 1, created with NumberCurve.new or NumberCurve.linear.

Example

-- Server script.
local fade = NumberCurve.linear(1, 0)
print(fade.Points[1].Value) -- prints 1

Points

Field
Points: { NumberCurvePoint }

Points is an array of the 2 to 8 { Time, Value, Envelope } point tables in time order.