-- Store the effect attached to the GameObject local _Effect = vci.assets.GetEffekseerEmitter("EffectItem") function onGrab() -- Set the effect to play in loop _Effect._ALL_SetLoop(true) -- Start playing the effect _Effect._ALL_Play() end function onUse() -- Disable the loop play of the effect _Effect._ALL_SetLoop(false) -- Start playing the effect _Effect._ALL_Play() end