Hand-written by Joseph San Nicolas, Roblox Developer
NumberRange
Constructors
| Name | Description |
| 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
| Name | Type | Description |
| Min | number | The minimum value of the NumberRange, always less than or equal to the maximum. |
| Max | number | The maximum value of the NumberRange, always greater than or equal to the minimum. |