how do you use .Changed for the maxvalue of it
Could you give some example code?
use Math.Clamp(min, currentValue, Highest Value)
If it’s higher then the maxvalue it makes it returns the highest value. If it’s lower then the minimum value it returns the minimum value. If it’s in the middle it just returns the same thing.
You can use GetPropertChangedSignal to wait for specific properties, if that’s what you want
IntConstrainedValue is depreciated and should not be used for new work. If you want to limit the max value of an IntValue, you can use math.min function or even clamp it it using math.clamp.
I think he’s asking how to constrain values not how to listen for changes
Since he’s already using a listener to detect changes.
1 Like