Roblox UtilitiesDevlHub Roblox Documentation

Class

IntConstrainedValue

Deprecated
Inherits
ValueBase › Instance › Object
Memory category
Instances

An IntConstrainedValue is used to store a value which can never be less than MinValue and can never be more than MaxValue.

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

An IntConstrainedValue is used to store a value which can never be less than MinValue and can never be more than MaxValue.

Properties 4#

ConstrainedValueint64Hold an Integer value between IntConstrainedValue.MinValue and IntConstrainedValue.MaxValue. Replaced by IntConstrainedValue.Value, but still functional.ReadSafeDeprecatedHiddenNotReplicated
MaxValueint64The highest number that the IntConstrainedValue.Value property can be.ReadSafeDeprecated
MinValueint64The lowest number that the IntConstrainedValue.Value property can be.ReadSafeDeprecated
Valueint64Used to hold an integer value between IntConstrainedValue.MinValue and IntConstrainedValue.MaxValue.ReadSafeDeprecatedNotReplicated

ConstrainedValue: int64#

HiddenNotReplicatedReadSafeDeprecated

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

Hold an Integer value between IntConstrainedValue.MinValue and IntConstrainedValue.MaxValue. Replaced by IntConstrainedValue.Value, but still functional.

MaxValue: int64#

ReadSafeDeprecated

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

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

MinValue: int64#

ReadSafeDeprecated

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

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

Value: int64#

NotReplicatedReadSafeDeprecated

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

Used to hold an integer value between IntConstrainedValue.MinValue and IntConstrainedValue.MaxValue.

Events 2#

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

Changed(value: int64)#

Deprecated

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

Fired whenever the Value of the IntConstrainedValue is changed.

NameTypeDefaultDescription
valueint64

changed(value: int64)#

DeprecatedDeprecated

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

NameTypeDefaultDescription
valueint64

Inherited members#

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

ClassName, className

Events (1)

Changed