How to set a "MAX SIZE" on Parts

How would I setup a Max size so that the part can only be increased up to that size?

Like I


would want this part to be capped at this size

object.size = Vector3.new(math.min(object.size.X,capx)…)

1 Like
if Example.Size.X > 5 then
 -- change size
end