- Documentation
- Particles
Category
Particles
All Lua functions and events in the Particles category, on the server and the client.

fire, vortex and hearts presets outside the Johnson house.Client functions 1
Shared functions 10
burstReleases the given number of particles at once, regardless ofParticles rate: an explosion, a hit, a burst of confetti.createA short effect: the emitter releases particles for the given time and removes itself once the last one fades. No need to destroy it. On the server, every player nearby sees the effect.Particle Effect createCreates an emitter of moving particles simulated by the game: fire, smoke, sparks, snow, portals and anything you build from the settings. The fourth argument is a preset name or a settings table, the fifth overrides chosen fields of the preset. Returns aParticle Emitter "particle"element that can be moved, attached and destroyed like any other. Called on the server, it creates an emitter every player sees.getReturns a copy of the emitter's settings. You can change it and pass it back toParticle Emitter Settings setParticleEmitterSettings.getReturns the ready-made particle effects as aParticle Presets { name = description }table.getReturns a copy of a preset's full settings, as a starting point for your own.Particle Preset Settings getReturns the names of the built-in particle shapes (theParticle Sprites spritefield).isChecks whether the emitter releases new particles.Particle Emitter Enabled setStarts or pauses releasing new particles. A disabled emitter lets the particles already released live out their life; enabling it again restarts theParticle Emitter Enabled durationtime.setChanges chosen settings of a running emitter (the same fields as inParticle Emitter Settings createParticleEmitter), the rest stays. Living particles pick up the new colour and size immediately.