-- Target を検索して _Target に格納する local _Target = vci.assets.GetTransform("Target") function onUse(use) -- Useしたアイテムの名前が Switch だった時 if use == "Switch" then -- 小さくなってる場合は大きくする if _Target.GetLocalScale().x < 0.1 then local scale = Vector3.__new(1, 1, 1) _Target.SetLocalScale(scale) end -- 大きくなってる場合は小さくする if _Target.GetLocalScale().x > 0.1 then local scale = Vector3.__new(0.001, 0.001, 0.001) _Target.SetLocalScale(scale) end end end