Skip to Content
Kinemium

NumberRangeValue

Store a NumberRange in the object tree.

NumberRangeValue holds a minimum and maximum pair as an instance. Use it for ranges that another system reads, such as random delays or effect scales.

Getting started

local delay = Instance.new("NumberRangeValue")
delay.Name = "DelayRange"
delay.Value = NumberRange.new(1, 3)
delay.Parent = configFolder

Properties

PropertyTypeAccessDefaultDescription
ValueNumberRangeRead/writeZero rangeThe stored range.

Notes

  • Inherits from ValueBase, which adds no members.
  • Cloning copies both bounds.
  • An unset value reads as a range with both bounds at 0.
  • Ranges aren't normalized for you; if the caller expects Min <= Max, order them yourself.

See also

  • NumberValue for a single number.
  • TweenService and effects that consume ranges.

On this page