How to make a particle in a for i, v loop emit independently

for i, v in pairs(ClonedBall:GetChildren()) do
			if v:IsA("ParticleEmitter") then
			spawn(function()
			task.wait()
			v:Emit(v:GetAttribute("EmitCount"))
		end)
	end
end

this is my code, im trying to make it so they emit depending on their emit count, but for some reason it emits WAY to many times. I think its because of the getchildren()
Is there a better way of multiple particles?

1 Like

I doubt getChildren() would make more, It might be because maybe you are making multiple of the same particle which I doubt.

So maybe set the amount to a smaller number? I think that sometimes the number while in studio is different from one playtesting, such as how high your graphics setting is also effects it

1 Like

Turns out you were right, it turns out it was just a coding flaw where it’d run the function multiple times lol :smile:

2 Likes

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