PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Changed

Fired whenever the Value of the DoubleConstrainedValue is changed.

Parameters

Name Type Default Description

Code Samples


DoubleConstrainedValue.Changed

The below example, assuming all referenced objects existed, would print the DoubleConstrainedValue’s new value each time it’s changed. In the example below it would print 2, assuming it’s within DoubleConstrainedValue’s MinValue and MaxValue range. Otherwise there will be no change.

Workspace.DoubleConstrainedValue.Changed:Connect(function(NewValue)
    print(NewValue)
end)

Workspace.DoubleConstrainedValue.Value = 2