-- Search for "Target" and store it in _Target local _Target = vci.assets.GetSubItem("Target") function onUse(use) -- If the name of the item used was "Switch" if use == "Switch" then -- Enlarge it if it is minimized if _Target.GetLocalScale().x < 0.1 then local scale = Vector3.__new(1, 1, 1) _Target.SetLocalScale(scale) end -- minimize it if it is enlarged if _Target.GetLocalScale().x > 0.1 then local scale = Vector3.__new(0.001, 0.001, 0.001) _Target.SetLocalScale(scale) end end end