-- Store the effect attached to the GameObject local _Effect = vci.assets.GetEffekseerEmitter("EffectItem") function onUse() -- Assign a random value between 1.0 and 3.0 into the speed local speed = 0.1 * math.random(10, 30) -- Change the play speed of the effect _Effect._ALL_SetSpeed(speed) -- Play the effect only once _Effect.PlayOneShot() end