Particles
Contains functions for interacting with particle systems.
Functions
spawn(particleName, position, rotation, scale, lifetime)
Spawns a particle emitter.
Parameters
- particleName — The name of the particle emitter.
- position — Vector3 position of the particle emitter.
- rotation — Vector3 rotation of the particle emitter.
- scale — Vector3 scale of the particle emitter.
- lifetime — The total lifetime of the particle emitter (in seconds).
Example
Spawn confetti rain on top of the entity for 5 seconds.
function onStart()
Particles.spawn("confetti.rain", self.position + Vector3.new(0,2,0), self.rotation, self.scale, 5)
end