Basic Properties¶
The system comes with many properties that you can adjust to create particle effects. Below are the basic properties that you can change.
Enabled¶
Recommendation
While emitter.enabled
works for starting and stopping the emitter, it is not recommended, and while Enabled
is a property in the emitter:Create({
that works, it also isn't recommended to use, it's more recommended to use emitter:Start()
or emitter:Stop()
immediately outside of the emitter:Create({
table if you want to start the emitter disabled.
- Description: Control's whether the particles are emitting or not.
- Default:
true
- Example:
For starting and stopping an emitter outside of the Create({
function, use:
local VortexFXParticles = require(game:GetService("ReplicatedStorage").VortexFXParticles)
local emitter = VortexFXParticles.new()
emitter:Create({})
emitter:Start()
emitter:Stop()
emitter:Kill()
Acceleration¶
- Description: Controls the acceleration applied to particles, allowing them to speed up or slow down over time.
- Default:
Vector3.new(0, 0, 0)
- Example:
Color¶
- Description: Sets the color of the particles. You can also use
ColorSequence
orColorSequenceKeypoint
to make particles change color over their lifetime. - Default:
Color3.fromRGB(255, 255, 255)
- Example:
emitter:Create({ -- Particles transition from red to yellow Color = ColorSequence.new(Color3.fromRGB(255, 0, 0), Color3.fromRGB(255, 255, 0)) })
emitter:Create({ -- Particles transition from yellow to blue to green to red to white Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 235, 156)), ColorSequenceKeypoint.new(0.25, Color3.fromRGB(110, 137, 255)), ColorSequenceKeypoint.new(0.5, Color3.fromRGB(46, 255, 203)), ColorSequenceKeypoint.new(0.75, Color3.fromRGB(255, 129, 131)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255)), }) })
Drag¶
- Description: Applies drag to the particles, slowing them down over time.
- Default:
0
- Example:
EmissionDirection¶
- Description: Control's which direction the particles emit from the emitter.
- Default:
Enum.NormalId.Top
- Example:
Lifetime¶
- Description: Defines how long particles will live before disappearing. This can be set as a
NumberRange
for varied lifetimes orSingle
for determined lifetime. - Default:
NumberRange.new(5, 10)
- Example:
Shape¶
- Description: The shape of each particle when not using
ReferenceObject
- Default:
Enum.PartType.Block
- Example:
Material¶
- Description: The material of each particle when not using
ReferenceObject
- Default:
Enum.Material.SmoothPlastic
- Example:
Rate¶
High rate count
It is not a good idea to go above 60 rate without a short lifetime or in bursts, as this can lag a client or the server, depending on what you run it on.
- Description: Determines how many particles are emitted per second.
- Default:
5
- Example:
Rotation¶
- Description: Sets the initial rotation of the particles.
- Default:
Vector3.new(0, 0, 0)
- Example:
RotationSpeed¶
X axis warning
The X axis in RotationSpeed is notorious for causing issues, I've researched far far into this and this is a problem with the way Roblox handles adding rotation, if possible, avoid high numbers of the X axis, this can only be fixed by Roblox, I can't fix this :/
- Description: Defines the speed at which particles rotate over their lifetime.
- Default:
Vector3.new(0, 0, 0)
- Example:
Size¶
- Description: Sets the size of the particles. You can use
NumberSequence
orNumberSequenceKeypoint
to make particles grow or shrink over time. - Default:
NumberSequence.new(1)
- Example:
Speed¶
- Description: Controls the speed at which particles are emitted.
- Default:
NumberRange.new(5)
- Example:
SpreadAngle¶
- Description: Determines the angle at which particles are emitted at X, Y, and Z values, giving you more directional control.
- Default:
Vector3.new(0, 0, 0)
- Example:
Transparency¶
- Description: Sets the transparency of the particles. You can use
NumberSequence
orNumberSequenceKeypoint
to change transparency over time. - Default:
NumberSequence.new(0)
- Example:
These are the basic properties you can tweak to get started with VortexFX.