Roblox UtilitiesDevlHub Roblox Documentation

Class

DoubleConstrainedValue

Deprecated
Inherits
ValueBase › Instance › Object
Memory category
Instances

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

Deprecated. The DoubleConstrainedValue object has been deprecated as developers can now use the math.clamp() function to constrain values.

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

Properties 4#

ConstrainedValuedoubleReadSafeDeprecatedHiddenNotReplicated
MaxValuedoubleThe highest number that the DoubleConstrainedValue.Value property can be.ReadSafeDeprecated
MinValuedoubleThe lowest number that the DoubleConstrainedValue.Value property can be.ReadSafeDeprecated
ValuedoubleUsed to hold a number value between DoubleConstrainedValue.MinValue and DoubleConstrainedValue.MaxValue.ReadSafeDeprecatedNotReplicated

ConstrainedValue: double#

HiddenNotReplicatedReadSafeDeprecated

Deprecated. The DoubleConstrainedValue object has been deprecated as developers can now use the math.clamp() function to constrain values.

MaxValue: double#

ReadSafeDeprecated

Deprecated. The DoubleConstrainedValue object has been deprecated as developers can now use the math.clamp() function to constrain values.

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

MinValue: double#

ReadSafeDeprecated

Deprecated. The DoubleConstrainedValue object has been deprecated as developers can now use the math.clamp() function to constrain values.

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

Value: double#

NotReplicatedReadSafeDeprecated

Deprecated. The DoubleConstrainedValue object has been deprecated as developers can now use the math.clamp() function to constrain values.

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

Events 2#

ChangedFired whenever the DoubleConstrainedValue.Value of the DoubleConstrainedValue is changed.Deprecated
changedDeprecated

Changed(value: double)#

Deprecated

Deprecated. The DoubleConstrainedValue object has been deprecated as developers can now use the math.clamp() function to constrain values.

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

NameTypeDefaultDescription
valuedouble

changed(value: double)#

DeprecatedDeprecated

Deprecated. This event is a deprecated variant of DoubleConstrainedValue.Changed which has also been deprecated. Neither event should be used in new work.

NameTypeDefaultDescription
valuedouble

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed