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?
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