-- Store the effect attached to the GameObject local _Effect = vci.assets.GetEffekseerEmitter("EffectItem") -- Start playing the effect _Effect._ALL_Play() function onUse() -- Change the color of the effect to blue _Effect.SetAllColor(Color.blue) end function onUnuse() -- Change the color of the effect to red _Effect.SetAllColor(Color.red) end