Skip to content

NumberRange

Inherits ?

NumberRange is a data type that represents a range between two numbers, defined by a minimum and maximum value.

Not newable

This object cannot be created by scripts using Instance.New().

Properties

Min : number

Determines the minimum value of the range.

Max : number

Determines the maximum value of the range.

Methods

New → NumberRange

Parameters

from [ number ]

to [ number ]

Creates a new NumberRange object with the specified minimum and maximum values.

Lerp → number

Parameters: t [ number ]

Linearly interpolates between the minimum and maximum values of the range based on the parameter t, which is typically between 0 and 1.