This is a small portion of a fireball script I'm working on, I want to make it so that on contact, it lights the player on fire(All of their body parts). How would I make it so that the particle emitters position matched that of the body parts.
fireball.Touched:connect(function(hit)
local fire = game.Lighting.ParticleEmitter:Clone()
for i,v in pairs(hit.Parent:GetChildren()) do
Using this script, I tried to make it so that the Particle emitter would be inserted into each thing inside a character. But it did not work. Instead, the particle emitter(s) is/are laying on the baseplate and I have no idea where in the explorer they are located.
In short, the question is how can I position particle emitters to be where I want them to (With most things I use (Object).CFrame = (OtherObject).CFrame)

3 comments
I mean I could always just individually put all the particle emitters in the body parts in separate lines of code, but that takes up unnecessary space.
Why is the particleemitter in Lighting?
I dont really know, just a simple place to store it, where do you think I should put it?