Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Particle Emitters + Script... =?

Asked by 9 years ago

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

Log in to vote
3
Answered by 9 years ago

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
0
Thank you! supersayain4 0 — 9y
0
No problem. SimplyRekt 413 — 9y
Ad

Answer this question