:Emit() not working properly

I want to emit particles, that’s it.

The error I’m currently facing is simple yet I don’t know how to fix it.

This is my code:

        local pathClone = path:Clone()
		pathClone.Parent = workspace.VFX
		pathClone.Name = pathClone.Name .. "_" .. tostring(#workspace.VFX:GetChildren())
		pathClone.CFrame = pos

		for i, v in pairs(path:GetDescendants()) do
			if v:IsA("ParticleEmitter") then
				v:Emit()
			end
		end

		task.wait(duration)

		pathClone:Destroy()

pathClone and everything else is already given, the “thing” that doesn’t actually work is the :Emit() function.

It’s weird because i’ve done this exact method in a bunch of projects and it has never failed me.

(The script is client-sided)

I can send more of my code if needed

Did you mean pathClone:GetDescendants()

Yeah i guess I didn’t see it XD

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.