IntConstrainedValue

Show Deprecated
Deprecated

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

Summary

Properties

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

HIDDEN
NOT REPLICATED

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

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

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

NOT REPLICATED

Events


Fired whenever the Value of the IntConstrainedValue is changed.

Methods

Properties

ConstrainedValue

Hidden
Not Replicated

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

MaxValue

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

MinValue

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

Value

Not Replicated

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

Events

Changed

Fired whenever the Value of the IntConstrainedValue is changed.

Parameters

value: number

Code Samples

IntConstrainedValue.Changed

1local function valueChanged(newValue)
2 print(newValue)
3end
4
5workspace.IntConstrainedValue.Changed:Connect(valueChanged)
6
7workspace.IntConstrainedValue.Value = 2

Methods