24 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ParticleEmitter

Inherits from: Instance → Object

A ParticleEmitter is a special object that emits customizable 2D particles into the world. To emit and render particles, it must be parented to a BasePart or an Attachment within such a part. When parented to a BasePart, particles spawn randomly within the part's bounding box or shape; when parented to an Attachment, particles spawn from the attachment's position.

Particles emit automatically when the emitter is Enabled with a non-zero Rate, or manually when the Emit method is called. With a non-zero Speed, particles are set in motion outwards and/or inwards, depending on the ShapeInOut property.

By default, particles face the camera, but the Orientation can be modified to respect the particle velocity instead.

During the Lifetime of the particles, they can change appearance according to the Color and Size. Their motion can change over time according to the Drag and Acceleration properties, and they can also move as their parent moves when they are LockedToPart or have a non-zero VelocityInheritance.

To learn more about creating and customizing particle emitters, see Particle Emitters.

Inherits from: Instance

Memory category: Instances

Code samples: View on Creator Hub (Creating-A-ParticleEmitter-from-Scratch).

Properties

NameType / ReturnsDescription
ParticleEmitter.AccelerationVector3Determines the global-axis acceleration of all active particles, measured in studs per second squared.
ParticleEmitter.BrightnessfloatScales the light emitted from the emitter when ParticleEmitter.LightInfluence is 0.
ParticleEmitter.ColorColorSequenceDetermines the color of all active particles over their individual lifetimes.
ParticleEmitter.DragfloatDetermines the rate at which particles will lose half their speed through exponential decay.
ParticleEmitter.EmissionDirectionNormalIdDetermines the face of the object that particles emit from.
ParticleEmitter.EnabledbooleanDetermines if particles emit from the emitter.
ParticleEmitter.FlipbookBlendFramesbooleanDetermines whether the flipbook frames are blended between.
ParticleEmitter.FlipbookFramerateNumberRangeDetermines how fast the flipbook texture animates in frames per second.
ParticleEmitter.FlipbookIncompatiblestringThe error message to display if the Texture is incompatible for a flipbook.
ParticleEmitter.FlipbookLayoutParticleFlipbookLayoutDetermines the layout of the flipbook texture. Must be None, Grid2x2, Grid4x4, Grid8x8 or Custom.
ParticleEmitter.FlipbookModeParticleFlipbookModeDetermines the type of the flipbook animation. Must be Loop, OneShot, PingPong, or Random.
ParticleEmitter.FlipbookSizeXintDefines the number of horizontal frames in a custom flipbook layout.
ParticleEmitter.FlipbookSizeYintDefines the number of vertical frames in a custom flipbook layout.
ParticleEmitter.FlipbookStartRandombooleanDetermines whether the animation starts at a random frame chosen per particle instead of always starting at frame zero.
ParticleEmitter.LifetimeNumberRangeDefines a random range of ages for newly emitted particles.
ParticleEmitter.LightEmissionfloatDetermines how much particles' colors are blended with the colors behind them.
ParticleEmitter.LightInfluencefloatDetermines how much particles are influenced by the environmental light.
ParticleEmitter.LocalTransparencyModifierfloatDetermines a multiplier for ParticleEmitter.Transparency that is only visible to the local client.
ParticleEmitter.LockedToPartbooleanDetermines whether the particles rigidly move with the part they're being emitted from.
ParticleEmitter.OrientationParticleOrientationSpecifies how to orient particles.
ParticleEmitter.RatefloatDetermines the number of particles emitted per second.
ParticleEmitter.RotationNumberRangeDetermines the range of rotations in degrees for newly emitted particles.
ParticleEmitter.RotSpeedNumberRangeDetermines the range of angular speeds of emitted particles, measured in degrees per second.
ParticleEmitter.ShapeParticleEmitterShapeSets the shape of the emitter to either a box, sphere, cylinder, or disc.
ParticleEmitter.ShapeInOutParticleEmitterShapeInOutSets whether particles emit outward only, inward only, or in both directions.
ParticleEmitter.ShapePartialfloatInfluences particle emission from cylinder, disc, sphere, and box shapes.
ParticleEmitter.ShapeStyleParticleEmitterShapeStyleSets particle emission to either volumetric or surface-only emission.
ParticleEmitter.SizeNumberSequenceDetermines the world size over individual particles' lifetimes.
ParticleEmitter.SpeedNumberRangeDetermines a random range of velocities (minimum to maximum) at which new particles will emit, measured in studs per second.
ParticleEmitter.SpreadAngleVector2Determines the angles at which particles may be randomly emit, measured in degrees.
ParticleEmitter.SquashNumberSequenceAllows for non-uniform scaling of particles, curve-controlled over their lifetime.
ParticleEmitter.TextureContentIdDetermines the image rendered on particles.
ParticleEmitter.TextureContentContentThe image rendered on particles. Supports asset URIs.
ParticleEmitter.TimeScalefloatValue between 0 and 1 that controls the speed of the particle effect.
ParticleEmitter.TransparencyNumberSequenceDetermines the transparency of particles over their individual lifetimes.
ParticleEmitter.VelocityInheritancefloatDetermines how much of the parent's velocity is inherited by particles when emitted.
ParticleEmitter.VelocitySpreadfloatDetermines how offset a particle can be fired from the local emitter direction of its parent.
ParticleEmitter.WindAffectsDragbooleanWhether emitted particles follow the Workspace.GlobalWind vector.
ParticleEmitter.ZOffsetfloatDetermines the forward-backward render position of particles; used to control what particles render on top/bottom.

Inherited from Instance

NameType / ReturnsDescription
Instance.ArchivablebooleanDetermines if an Instance and its descendants can be cloned using Instance:Clone(), and can be saved/published.
Instance.archivableboolean
Instance.CapabilitiesSecurityCapabilitiesThe set of capabilities allowed to be used for scripts inside this container.
Instance.IsInSandboxbooleanIndicates whether the instance is inside a sandboxed container.
Instance.NamestringA non-unique identifier of the Instance.
Instance.ParentInstanceDetermines the hierarchical parent of the Instance.
Instance.PredictionModePredictionModeReflects the client-side prediction mode applied to the instance under server-authoritative physics.
Instance.RobloxLockedbooleanA deprecated property that used to protect CoreGui objects.
Instance.SandboxedbooleanWhen enabled, the instance can only access abilities in its Capabilities list.
Instance.UniqueIdUniqueIdA unique identifier for the instance.

Inherited from Object

NameType / ReturnsDescription
Object.ClassNamestringA read-only string representing the class this Object belongs to.
Object.classNamestring

ParticleEmitter.Acceleration

The Acceleration property determines how the Speed of particles changes over their lifetime. It is defined using a Vector3 to determine the acceleration on the global X/Y/Z axes and is measured in studs per second squared. When changed, this property affects all particles emitted by the emitter, both current and future.

Acceleration will slow particles down if the vector points in the opposite EmissionDirection in which they are emitted. Otherwise, it will speed them up.

FieldValue
typeVector3
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryMotion
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Brightness

Scales the light emitted from the emitter when ParticleEmitter.LightInfluence is 0.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Color

The Color property determines the color of all active particles over their individual lifetimes. The color applies to the Texture when rendering and it uses the texture alpha along with the emitter's Transparency. If an emitter has a LightEmission value that's greater than 0, darker colors make particles appear more transparent.

Changing this property affects all particles emitted by the emitter, both current and future.

When this property uses a gradient ColorSequence, a particle's present color is determined by linearly interpolating on the sequence using the particle's age and its total lifetime. For example, if a particle spawned 2 seconds ago and has a 4 second lifetime, the color will be whatever is 50% of the way through the ColorSequence.

FieldValue
typeColorSequence
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Drag

The Drag property determines the rate in seconds at which individual particles will lose half their speed via exponential decay. Drag is applied by scaling the expected velocity from Speed and any velocity inherited from the parent from VelocityInheritance. Setting this property to a negative value will cause particles' velocities to grow exponentially.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryParticles
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.EmissionDirection

The EmissionDirection property determines the face (NormalId) of the parent object that particles emit from. A negative Speed means particles emit in the opposite direction. SpreadAngle further varies the emission direction.

If you add a ParticleEmitter to an Attachment, which has a direction, you can rotate the attachment itself (Attachment.Orientation) instead of using this property.

FieldValue
typeNormalId
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Enabled

The Enabled property determines if particles emit from the emitter. Setting this to false stops further particles from spawning, but any existing particles remain active until they expire. This property is useful when you have a pre-made particle effect that you want to remain disabled until you need it to emit particles.

If you want to clear all particles from a disabled emitter, call Clear(). Then, if desired, call Emit() on the emitter to emit and render particles.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookBlendFrames

The FlipbookBlendFrames property determines whether the frames in the flipbook texture are blended between using a linear crossfade, or swapped instantly.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookFramerate

The FlipbookFramerate property determines how fast the flipbook texture animates in frames per second. Like Lifetime, you can set a minimum and maximum range to randomize the framerate of the flipbook, with a maximum of 30 frames per second.

FieldValue
typeNumberRange
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookIncompatible

The error message to display if the Texture is incompatible for a flipbook. The flipbook texture size must be an exact multiple of the flipbook layout size.

FieldValue
typestring
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookLayout

The FlipbookLayout property determines the layout of the texture. It can be any value of the ParticleFlipbookLayout enum:

FieldValue
typeParticleFlipbookLayout
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookMode

The FlipbookMode property determines the type of the flipbook animation. It can be any value of the ParticleFlipbookMode enum:

FieldValue
typeParticleFlipbookMode
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookSizeX

The FlipbookSizeX property defines the number of horizontal frames (columns) in a custom flipbook layout. This property only applies when FlipbookLayout is set to Custom.

FieldValue
typeint
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookSizeY

The FlipbookSizeY property defines the number of vertical frames (rows) in a custom flipbook layout. This property only applies when FlipbookLayout is set to Custom.

FieldValue
typeint
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.FlipbookStartRandom

The FlipbookStartRandom property determines whether each particle begins at a random frame of the animation instead of always starting at the first frame. One use case is to enable this property and also set FlipbookFramerate to zero, causing each emitted particle to be a static frame chosen randomly from the flipbook texture.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryFlipbook
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Lifetime

The Lifetime property defines the maximum and minimum ages for newly emitted particles. Lifetimes are stored on a per-particle basis, so if this value is changed, existing particles will stay active until their randomly chosen lifetime ends. A lifetime of 0 will prevent particles from emitting at all.

FieldValue
typeNumberRange
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.LightEmission

The LightEmission property determines the blending of the Texture colors with the colors behind them. A value of 0 uses normal blending mode while a value of 1 uses additive blending. When changed, this property instantly affects all particles owned by the emitter, both current and future.

This property should not be confused with LightInfluence which determines how particles are affected by environmental light.

This property does not cause particles to light the environment around them. To accomplish that, consider using a PointLight.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.LightInfluence

The LightInfluence property determines how much environmental light affects the color of individual particles when they render. It must be in the range of 0–1; behavior of values outside of this range are not defined. At 0, particles are not influenced by light at all (they retain full brightness); at 1, particles are fully influenced by light (in complete darkness, particles will be black).

By default, this value is 1 if inserted with Studio tools. If inserted using Instance.new(), it is 0.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.LocalTransparencyModifier

The LocalTransparencyModifier property is a multiplier applied to the particle emitter's Transparency that is only visible to the local client. It does not replicate from client to server and is useful for when particles should not render for a specific client.

Uses the same formula as BasePart.LocalTransparencyModifier:

1 - ((1 - Transparency) × (1 - LocalTransparencyModifier))

A value of 0 (default) has no effect on the particle transparency. A value of 1 makes all particles completely invisible to the local client regardless of their Transparency value.

FieldValue
typefloat
tags["Hidden","NotReplicated"]
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":false,"can_save":false}
capabilities["Basic"]

ParticleEmitter.LockedToPart

The LockedToPart property determines if particles "stick" to the emission source (the Attachment or BasePart to which the ParticleEmitter is parented). If true, active particles will move in lock step if the parent object moves.

Alternatively, consider using the VelocityInheritance property with a value of 1 which may be more appropriate for some effects.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryParticles
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Orientation

The Orientation property determines which orientation mode to use for an emitter's particle geometry.

Orientation Particle Behavior
FacingCamera Standard camera-facing billboard quad; default behavior.
FacingCameraWorldUp Facing the camera, but rotating only on the vertical upward world Y axis.
VelocityParallel Aligned parallel to their direction of movement.
VelocityPerpendicular Aligned perpendicular to their direction movement.
FieldValue
typeParticleOrientation
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Rate

The Rate property determines how many particles are emitted per second while the emitter is Enabled. It is the inverse of frequency, meaning that a rate of 5 emits a particle every 0.2 seconds. When changed, this property has no affect on any active particles.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Rotation

The Rotation property determines the range of rotations in degrees for newly emitted particles, measured in degrees. Positive values are in the clockwise direction. This property is commonly set to [0, 360] to provide a completely random rotation to new particles. RotSpeed also influences the rotation of a particle over its lifetime.

Changes to this value only affect new particles; existing particles maintain the rotation at which they were originally emitted.

FieldValue
typeNumberRange
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.RotSpeed

The RotSpeed property determines a random range of angular speeds for newly emitted particles, measured in degrees per second. A random angular speed is chosen upon emission, so changing this property doesn't affect active particles. This property, along with Rotation, affects the angle of the rendered particle image.

Particles with very high angular speeds can appear to rotate slower or not at all, since the angle of rotation is synchronized with the software render speed. For example, if particles rotate at exactly 360 degrees every frame, there will be no apparent change in rotation.

FieldValue
typeNumberRange
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Shape

The Shape property sets the shape of the emitter to either a box, sphere, cylinder, or disc. After you make a selection, you can adjust the ShapeStyle, ShapeInOut, and ShapePartial properties to further customize particle emission. For visual examples, see here.

FieldValue
typeParticleEmitterShape
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmitterShape
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.ShapeInOut

Sets whether particles emit outward only, inward only, or in both directions. For visual examples, see here.

FieldValue
typeParticleEmitterShapeInOut
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmitterShape
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.ShapePartial

Depending on the Shape value, this property performs a different action:

For visual examples, see here.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmitterShape
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.ShapeStyle

Sets particle emission to either volumetric or surface-only emission. For visual examples, see here.

FieldValue
typeParticleEmitterShapeStyle
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmitterShape
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Size

The Size property determines the world size of all active particles over their individual lifetimes. This property represents the dimensions of the square Texture for each particle. It is a NumberSequence that works similarly to Transparency.

A particle's present size is determined by linearly interpolating on this sequence using the particle's age and its total lifetime. For example, if a particle spawned 2 seconds ago and has a 4 second lifetime, the size will be whatever is 50% of the way through the NumberSequence. For any NumberSequenceKeypoint with a non-zero envelope value, a random value in the envelope range is chosen for each keypoint for each particle when it emits.

FieldValue
typeNumberSequence
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Speed

The Speed property determines a random range of velocities (minimum to maximum) at which new particles will emit, measured in studs per second. Each particle's velocity is chosen upon emission and it applies in the EmissionDirection. Negative values cause particles to travel in reverse.

Note that changing Speed does not affect active particles and they retain whatever speed they already have. However, Acceleration, Drag, and VelocityInheritance can be used to affect the speed of active particles over their lifetime.

FieldValue
typeNumberRange
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.SpreadAngle

The SpreadAngle property determines the random angles at which a particle may be emitted. For example, if the EmissionDirection is Top (+Y), this Vector2 describes the size of the random angle spread on the X/Z axes, in degrees.

Setting one axis to 360 will cause particles to emit in all direction in a circle. Setting both to 360 will cause particles to emit in all directions in a sphere.

FieldValue
typeVector2
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Squash

Allows for non-uniform scaling of particles, curve-controlled over their lifetime. Values greater than 0 cause particles to both shrink horizontally and grow vertically, while values less than 0 cause particles to both grow horizontally and shrink vertically.

FieldValue
typeNumberSequence
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Texture

The Texture property determines the image rendered on particles. This image is influenced by Color, Transparency, LightInfluence, and LightEmission. Textures with transparent backgrounds work best for particles.

FieldValue
typeContentId
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.TextureContent

The image rendered on particles. Supports asset URIs.

This property is the Content equivalent of Texture. Assigning TextureContent updates Texture. The appearance of the texture is influenced by Color, Transparency, LightInfluence, and LightEmission.

FieldValue
typeContent
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.TimeScale

A value between 0 and 1 that controls the speed of the particle effect. At 1, it runs at normal speed; at 0.5 it runs at half speed; at 0 it freezes in time.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryParticles
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.Transparency

The Transparency property determines the transparency of all active particles over their individual lifetimes. It works similar to Size in how it affects particles over time. In terms of rendering, a value of 0 is completely visible (opaque) and a value of 1 is completely invisible (not rendered at all).

A particle's present transparency is determined by linearly interpolating on this sequence using the particle's age and its total lifetime. For example, if a particle spawned 2 seconds ago and has a 4 second lifetime, the transparency will be whatever is 50% of the way through the NumberSequence. For any NumberSequenceKeypoint with a non-zero envelope value, a random value in the envelope range is chosen for each keypoint for each particle when it emits.

FieldValue
typeNumberSequence
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.VelocityInheritance

The VelocityInheritance property determines how much of the parent part's Velocity is inherited by particles when they are emitted. A value of 0 means that no velocity is inherited, while a value of 1 means the particle will have the exact same speed as the parent BasePart.

When used in conjunction with Drag, a particle emitter can appear to "shed" particles from a moving part.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryParticles
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.VelocitySpread

Deprecated. This property has been superseded by ParticleEmitter.SpreadAngle which should be used in all new work.

This property determines how offset a particle can be fired from the local emitter direction of its parent. When a particle is created its offset is picked randomly between 0 and VelocitySpread. This value is measured in degrees.

FieldValue
typefloat
tags["NotReplicated","Deprecated"]
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryEmission
serialization{"can_load":true,"can_save":false}
capabilities["Basic"]

ParticleEmitter.WindAffectsDrag

If true, emitted particles follow the Workspace.GlobalWind vector. Only applies if the Drag property is greater than 0.

FieldValue
typeboolean
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryParticles
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

ParticleEmitter.ZOffset

The ZOffset property determines the forward-backward render position of particles, in studs, without changing their size on the screen. When changed, this property affects both current and future particles. Note that this property accepts fractional values; it is not like GuiObject.ZIndex (an integer).

Positive values move particles closer to the camera and negative values move particles away. Sufficiently negative values can cause particles to render inside or behind the parent part.

FieldValue
typefloat
security{"read":"None","write":"None"}
thread safetyReadSafe
categoryAppearance
serialization{"can_load":true,"can_save":true}
capabilities["Basic"]

Methods

NameType / ReturnsDescription
ParticleEmitter:Clear()Clears all particles that have been emitted.
ParticleEmitter:Emit()Emits a given number of particles.

Inherited from Instance

NameType / ReturnsDescription
Instance:AddTag()Applies a tag to the instance.
Instance:childrenInstancesReturns an array of the object's children.
Instance:ClearAllChildren()This method destroys all of an instance's children.
Instance:CloneInstanceCreate a copy of an instance and all its descendants, ignoring instances that are not Archivable.
Instance:cloneInstance
Instance:Destroy()Sets the Instance.Parent property to nil, locks the Instance.Parent property, disconnects all connections, and calls Destroy() on all children.
Instance:destroy()
Instance:FindFirstAncestorInstance?Returns the first ancestor of the Instance whose Instance.Name is equal to the given name.
Instance:FindFirstAncestorOfClassInstance?Returns the first ancestor of the Instance whose Object.ClassName is equal to the given className.
Instance:FindFirstAncestorWhichIsAInstance?Returns the first ancestor of the Instance for whom Object:IsA() returns true for the given className.
Instance:FindFirstChildInstance?Returns the first child of the Instance found with the given name.
Instance:findFirstChildInstance
Instance:FindFirstChildOfClassInstance?Returns the first child of the Instance whose ClassName is equal to the given class name.
Instance:FindFirstChildWhichIsAInstance?Returns the first child of the Instance for whom Object:IsA() returns true for the given className.
Instance:FindFirstDescendantInstance?Returns the first descendant found with the given Instance.Name.
Instance:GetActorActor?Returns the Actor associated with the Instance, if any.
Instance:GetAttributeVariantReturns the value which has been assigned to the given attribute name.
Instance:GetAttributeChangedSignalRBXScriptSignalReturns an event that fires when the given attribute changes.
Instance:GetAttributesDictionaryReturns a dictionary of the instance's attributes.
Instance:GetChildrenInstancesReturns an array containing all of the instance's children.
Instance:getChildrenInstances
Instance:GetDebugIdstringReturns a coded string of the debug ID used internally by Roblox.
Instance:GetDescendantsInstancesReturns an array containing all of the descendants of the instance.
Instance:GetFullNamestringReturns a string describing the instance's ancestry.
Instance:GetStyledVariantReturns the styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified.
Instance:GetStyledPropertyChangedSignalRBXScriptSignalReturns an event that fires when the given style property changes on the instance.
Instance:GetTagsArrayGets an array of all tags applied to the instance.
Instance:HasTagbooleanCheck whether the instance has a given tag.
Instance:IsAncestorOfbooleanReturns true if an Instance is an ancestor of the given descendant.
Instance:IsDescendantOfbooleanReturns true if an Instance is a descendant of the given ancestor.
Instance:isDescendantOfboolean
Instance:IsPropertyModifiedbooleanReturns true if the value stored in the specified property is not equal to the code-instantiated default.
Instance:QueryDescendantsInstancesReturns an array containing all descendants of the instance that match the selector string.
Instance:Remove()Sets the object's Parent to nil, and does the same for all its descendants.
Instance:remove()
Instance:RemoveTag()Removes a tag from the instance.
Instance:ResetPropertyToDefault()Resets a property to its default value.
Instance:SetAttribute()Sets the attribute with the given name to the given value.
Instance:WaitForChildInstanceReturns the child of the Instance with the given name. If the child does not exist, it will yield the current thread until it does.

Inherited from Object

NameType / ReturnsDescription
Object:GetPropertyChangedSignalRBXScriptSignalGet an event that fires when a given property of the object changes.
Object:IsAbooleanReturns true if an object's class matches or inherits from a given class.
Object:isAboolean

ParticleEmitter:Clear

The Clear method instantly clears all existing particles that have been emitted by the ParticleEmitter through its natural emission (non-zero Rate on an Enabled emitter) or via Emit().

Returns

TypeDescription
()
FieldValue
securityNone
thread safetyUnsafe
capabilities["Basic"]

Code samples: View on Creator Hub (ParticleEmitter-Burst).

ParticleEmitter:Emit

The Emit method will cause the ParticleEmitter to instantly emit the given number of particles.

Parameters

NameTypeDefaultDescription
particleCountint16The number of particles to emit.

Returns

TypeDescription
()
FieldValue
securityNone
thread safetyUnsafe
capabilities["Basic"]

Code samples: View on Creator Hub (Emit-Particles-Over-Distance, ParticleEmitter-Burst).

Events

Inherited from Instance

NameType / ReturnsDescription
Instance.AncestryChangedFires when the Instance.Parent property of this object or one of its ancestors is changed.
Instance.AttributeChangedFires whenever an attribute is changed on the Instance.
Instance.ChildAddedFires after an object is parented to this Instance.
Instance.childAdded
Instance.ChildRemovedFires after a child is removed from this Instance.
Instance.DescendantAddedFires after a descendant is added to the Instance.
Instance.DescendantRemovingFires immediately before a descendant of the Instance is removed.
Instance.DestroyingFires immediately before (or is deferred until after) the instance is destroyed via Instance:Destroy().
Instance.StyledPropertiesChangedFires whenever any style property is changed on the instance, including when a property is set to nil.

Inherited from Object

NameType / ReturnsDescription
Object.ChangedFires immediately after a property of the object changes, with some limitations.