DoubleConstrainedValue

Show Deprecated
Deprecated

An instance which is used to create a number value which can never be less than the MinValue or more than the MaxValue.

Summary

Properties

HIDDEN
NOT REPLICATED

The highest number that the DoubleConstrainedValue.Value property can be.

The lowest number that the DoubleConstrainedValue.Value property can be.

Used to hold a number value between DoubleConstrainedValue.MinValue and DoubleConstrainedValue.MaxValue.

NOT REPLICATED

Events


Fired whenever the DoubleConstrainedValue.Value of the DoubleConstrainedValue is changed.

Methods

Properties

ConstrainedValue

Hidden
Not Replicated

MaxValue

The highest number that the DoubleConstrainedValue.Value property can be.

MinValue

The lowest number that the DoubleConstrainedValue.Value property can be.

Value

Not Replicated

Used to hold a number value between DoubleConstrainedValue.MinValue and DoubleConstrainedValue.MaxValue.

Events

Changed

Fired whenever the DoubleConstrainedValue.Value of the DoubleConstrainedValue is changed.

Parameters

value: number

Code Samples

DoubleConstrainedValue.Changed

1workspace.DoubleConstrainedValue.Changed:Connect(function(newValue)
2 print(newValue)
3end)
4
5workspace.DoubleConstrainedValue.Value = 2

Methods