Class · inherits Instance
Fire
A preconfigured particle emitter with the visual aesthetic of fire.
About Fire
Fire is one of several preconfigured particle-emitting classes,
alongside Smoke, Sparkles, and others. Like the others, it
emits particles when parented to a BasePart or an Attachment
while Enabled. This object is useful to create a quick
visual effect for fire, but for more detailed work it's recommended that you
use a ParticleEmitter instead.
Particles emit from the center of the parent in an upward (+Y) direction,
but a negative Heat value may be used to emit particles
downward (-Y). Using an Attachment as the parent instead of a
BasePart allows for the emission position/direction to be modified by
changing the Attachment.CFrame or related properties.
Fire objects consist of two emitters, each affected in various ways by
the Size, Heat, Color,
and SecondaryColor properties. Particles which
emit from the smaller, secondary emitter have a significantly longer lifetime
(and rise farther) than those emitted by the primary emitter.
When Enabled is off, existing particles continue to
render until they expire. However, if the Fire object's
Parent is set to nil, all existing particles
immediately disappear, similar to the behavior of
ParticleEmitter.Clear.
Fire objects emit no light on their own. To help create a cohesive
environment around a burning object, try adding a PointLight with an
orange Color.
Properties 7
Color
: Color3Determines the color of the primary (outer) flame particles.This property determines the color of the larger particles emitted by a
Fireobject. It is essentially the color of the outer portion of the flame.In general, the cooler flames are on the outside of a fire. Therefore, fire looks more realistic if the outer portions are red or orange-yellow. A fire that is bright all throughout doesn't look very realistic, so avoid setting this property to yellow or white.
Enabled
: booleanDetermines whether flame particles are emit.This property, much like
ParticleEmitter.Enabled, determines whether flame particles are emitted. Any particles already emitted will continue to render until their lifetime expires.Since all fire particles are destroyed when the
Fireobject'sParentis set tonil, this property is useful in allowing existing particles the opportunity to expire before destroying theFireobject altogether (see the code example below).Heat
: floatNotReplicatedDetermines the velocity at which particles are emit.This property determines how fast particles are emitted from the
Fireobject. It is limited to the range of-25to25inclusive. Positive values are in the top (+Y) direction of the parentBasePartorAttachment, while negative values are in the downward (-Y) direction. It also affects theParticleEmitter.Accelerationof the inner particles.LocalTransparencyModifier
: floatHiddenNotReplicatedA multiplier for theFireobject's transparency that is only visible to the local client.This property is a multiplier for the
Fireobject's transparency that is only visible to the local client. It does not replicate from client to server and is useful for when the object should appear differently for a specific client.SecondaryColor
: Color3Determines the color of the of the secondary (inner) flame particles.This property determines the color of the smaller particles emitted by a
Fireobject. It is essentially the color of the inner portion of the flame.Note that the inner particles use a
ParticleEmitter.LightEmissionof1, so darker colors will instead cause the particles to appear transparent, and black will stop rendering inner particles altogether.Size
: floatNotReplicatedDetermines the size of the flame particles.This property determines the size of the flame particles. It must be in the range of
2to30. UnlikeParticleEmitter.Size, the actual size of the flames will not match 1:1 with the equivalent size in studs; it is somewhat smaller.If you add a
PointLightas a sibling to theFireobject to generate light, try setting the light'sBrightnessandRangeproportional to this property so that larger flames produce more light.TimeScale
: floatControls the speed of the particle effect.A value between
0and1than controls the speed of the particle effect.1runs at normal speed,0.5runs at half speed, and0freezes time.
Fire also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.