ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getParticlePresetSettings

Function

getParticlePresetSettings

Server and clientParticlesTrilogy Hub only

Returns a copy of a preset's full settings, as a starting point for your own.

Syntax

table getParticlePresetSettings(string name)

Arguments

namestring
The preset name.

Returns

The settings or false for an unknown name.

Example

local green = getParticlePresetSettings("fire")
green.colors = { tocolor(120, 255, 120), tocolor(20, 120, 40, 0) }
createParticleEmitter(x, y, z, green)

See also