-- Store the effect attached to the GameObject local _Effect = vci.assets.GetEffekseerEmitter("EffectItem") function onUse() -- Start playing the effect when used _Effect._ALL_Play() print("Start playing the effect: ".._Effect.EffectName) end function onUnuse() -- Stop playing the effect when unused _Effect._ALL_Stop() print("Stop playing the effect: ".._Effect.EffectName) end