NumberRange

Constructors

NameDescription
new(value: number)Returns a new NumberRange with both the minimum and maximum set to value.
new(minimum: number, maximum: number)Returns a new NumberRange with the given minimum and maximum. minimum must be less than or equal to maximum.

Code Snippet

local emitter = Instance.new("ParticleEmitter")
emitter.Lifetime = NumberRange.new(1, 3)
emitter.Speed = NumberRange.new(5)
emitter.Parent = workspace.Part

Properties

NameTypeDescription
MinnumberThe minimum value of the NumberRange, always less than or equal to the maximum.
MaxnumberThe maximum value of the NumberRange, always greater than or equal to the minimum.