IntConstrainedValue

Visualizza obsoleti
deprecato

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

Sommario

Proprietà

Eventi

Proprietà

ConstrainedValue

nascosto
non replicato
lettura parallela

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

MaxValue

lettura parallela

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

MinValue

lettura parallela

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

Value

non replicato
lettura parallela

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

Metodi

Eventi

Changed

Fired whenever the Value of the IntConstrainedValue is changed.

Parametri

value: number

Campioni di codice

IntConstrainedValue.Changed

local function valueChanged(newValue)
print(newValue)
end
workspace.IntConstrainedValue.Changed:Connect(valueChanged)
workspace.IntConstrainedValue.Value = 2