ParticleEmitter:Emit() doesn't stop

When I use ParticleEmitter:Emit(), instead of emitting the set amount like it’s supposed to, it keeps emitting and doesn’t stop at all. It just goes on forever. I read the :Emit() Documentation and saw it made a burst electricity effect instead of going on forever. What am I doing wrong?

3 Likes

You may be continuously firing the function or whatever makes the emitter emit.

You have to post the script you are using otherwise we can’t see what’s going on.
To format it properly copy paste the script here with 3 backticks (```) before and after it.

4 Likes

script.Parent:Emit(70)
thats all it is. when the instance spawns, it emits.

2 Likes

What do you have the Rate set at?
To use :Emit(70) properly Rate must be set to 0.

Is the instance spawning over and over?
Do this:

script.Parent:Emit(70)
print("emitter spawned")

or something similar to show you in the Output window how many times the instance is being spawned.

2 Likes

Why would I set the :Emit() rate to be 1? I don’t want a single particle. I set it to 70 for a burst of 70 particles. Also the Instance is only spawned once. There are multiple factors that show that.

Is the particle enabled? if it is, it’s going to automatically emit.

no
also the rate in the particleemitter is 0 anyways it just emits a burst with the script

try adding wait(.1) then emmiting the particle.

Ensure your ParticleEmitter has the attribute “EmitCount”. It should be a number value.

If it does have the “EmitCount” property, try this:

script.Parent:Emit(script.Parent:GetAttribute("EmitCount"))

Dang, sorry, set Rate to 0.

I didn’t actually say set :Emit to one

I’ve edited my previous post.

Yes, you have to Emit(70), but if the Rate Property isn’t 0 it’s going to keep the Particles going at whatever you put there.

Sorry for coming off so harsh. I have rate at 0.

No worries, my answer wasn’t super clear.

You said there are multiple factors that show that the instance is spawned once, but if you try the print.("emitter spawned") line in your code it might prove that one of those factors is spawning it more than once.

Maybe post a screen shot of your Emitter Properties and the code that causes that script.Parent:Emit(70) line of code to run.

2 Likes

Screen Shot 2024-05-27 at 2.15.39 PM
Screen Shot 2024-05-27 at 2.15.57 PM

Ah, so I figured it out. I use this thing called “FixedParticleRate” and when I had set the ParticleRate attribute to 0 it infinitely spawned particles. I just deleted the attribute.

1 Like

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