ParticleEmitter

For examples on how to use, refer to ParticleService.

Creates a Roblox ParticleEmitterarrow-up-right.

Functions

setTexture(texture: string)

Sets the rbxassetidarrow-up-right of the texturearrow-up-right of the particle emitter.

Sets the colorarrow-up-right of the particles emitted.

setRate(rate: number)

Sets the ratearrow-up-right of the particles emitted.

setPosition(position: Vector3arrow-up-right)

Sets the position of the particle emitter.

getPosition(): Vector3arrow-up-right

Returns the position of the particle emitter.

setRotation(rotation: Vector3arrow-up-right)

Sets the rotation of the particle emitter.

getRotation(): Vector3arrow-up-right

Returns the rotation of the particle emitter.

setCFrame(cframe: CFramearrow-up-right)

Sets the CFrame of the particle emitter.

Returns the CFrame of the particle emitter.

setRegionSize(size: Vector3arrow-up-right)

Sets the size of the region from which particles are emitted.

getRegionSize(): Vector3arrow-up-right

Returns the size of the region from which particles are emitted.

Sets the sizearrow-up-right of the particles emitted.

Returns the sizearrow-up-right of the particles emitted.

setTransparency(transparency: NumberSequencearrow-up-right)

Sets the transparencyarrow-up-right of the particles emitted.

getTransparency(): NumberSequencearrow-up-right

Returns the transparencyarrow-up-right of the particles emitted.

setBrightness(brightness: number)

Sets the brightnessarrow-up-right of the particles emitted.

setSpeed(speed: NumberRangearrow-up-right)

Sets the speedarrow-up-right of the particles emitted.

setAcceleration(acceleration: Vector3arrow-up-right)

Sets the accelerationarrow-up-right of the particles emitted.

setDrag(drag: number)

Sets the dragarrow-up-right of the particles emitted.

setLifetime(lifetime: NumberRangearrow-up-right)

Sets the lifetimearrow-up-right of the particles emitted.

setParticleOrientation(orientation: ParticleOrientationarrow-up-right)

Sets the particle orientationarrow-up-right of the particles emitted. Written as ParticleOrientation.FacingCamera

setParticleRotation(rotation: NumberRangearrow-up-right)

Sets the particle rotation of the particles emitted.

setRotSpeed(speed: NumberRangearrow-up-right)

Sets the rotation speed of the particles emitted.

setLightInfluence(influence: number)

Sets the light influence of the particles emitted.

setLightEmission(emission: number)

Sets the light emission of the particles emitted.

setSquash(squash: NumberSequencearrow-up-right)

Sets the squasharrow-up-right of the particles emitted.

setSpreadAngle(angle: Vector2arrow-up-right)

Sets the spread anglearrow-up-right of the particles emitted.

setTimeScale(timeScale: number)

Sets the time scalearrow-up-right of the particles emitted.

setEnabled(enabled: boolean)

Enables or disables the particle emitter.

setLockedToPart(locked: boolean)

Sets the particle emission to be lockedarrow-up-right to the emission source, or whether the particles will linger around the position they were emitted if the emission source moves.

emit(amount: number | nil)

Emitsarrow-up-right the given amount of particles, otherwise defaults to the rate of the particle emitter.

clear()

Clearsarrow-up-right any currently emitted particles.

destroy()

Destroys the particle emitter.

Last updated