IntConstrainedValue

Mostrar obsoleto
obsoleto

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

Resumen

Propiedades

Eventos

Propiedades

ConstrainedValue

oculto
no replicado
leer paralelo

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

MaxValue

leer paralelo

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

MinValue

leer paralelo

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

Value

no replicado
leer paralelo

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

Métodos

Eventos

Changed

Fired whenever the Value of the IntConstrainedValue is changed.

Parámetros

value: number

Muestras de código

IntConstrainedValue.Changed

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