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

Properties

ConstrainedValue

Hidden
Not Replicated
Read Parallel

MaxValue

Read Parallel

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

MinValue

Read Parallel

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

Value

Not Replicated
Read Parallel

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

Methods

Events

Changed

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

Parameters

value: number

Code Samples

DoubleConstrainedValue.Changed

workspace.DoubleConstrainedValue.Changed:Connect(function(newValue)
print(newValue)
end)
workspace.DoubleConstrainedValue.Value = 2