Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Particle Emitters + Script... =?

My question really just surrounds particle emitters. I really want to know how I can insert a particle emitter through an actual script into a brick. So for instance, if I had a tool that shot out a brick or in this case, a fireball. And the fireball was not a physical brick but actually created through the script. How would I get a particle emitter into that same script so that it would appear within the fireball as it is shot? Is this possible?

1 answer

If you're using an Instance to create the brick, use an instance to create a particle emitter as well. Here's an example.

brick = Instance.new("Part", game.Workspace)
pe = Instance.new("ParticleEmitter", brick)
color1 = Color3.new(.62,.62,.62)
color2 = Color3.new(.8,.08,.08)

pe.Color = ColorSequence.new(color1,color2)
pe.Rate = 3.5
pe.Speed = NumberRange.new(2,2.5)
pe.Lifetime = NumberRange.new(.2,2)
--Only as an example

2 comments

0

Thank you!

0

No problem.

This discussion is preserved as it was. New answers, comments, and votes are closed.