-- Store the effect attached to the GameObject local _Effect = vci.assets.GetEffekseerEmitter("EffectItem") -- Start playing the effect _Effect._ALL_Play() function onUse() -- Create a random color local color = Color.__new(math.random(0,100) * 0.01, math.random(0,100) * 0.01, math.random(0,100) * 0.01, 1) _Effect.SetAllColor(color) end