function onUse(use) local scale = vci.assets.GetSubItem(use).GetLocalScale() --To avoid the scale to go negative, shrink with a constant when it become smaller than a certain value if scale.y <= 0.11 then vci.assets.GetSubItem(use).SetLocalScale(Vector3.zero) return end -- A single use will shrink the object by the stepppoint local steppoint = 0.1 scale.x = scale.x - steppoint scale.y = scale.y - steppoint scale.z = scale.z - steppoint vci.assets.GetSubItem(use).SetLocalScale(scale) end