How to change radius of ParticleEmitter Attachment?

I have a ParticleEmitter parented to an attachment. I want to change the radius of the particle emitter/attachment so the radius of the particle effect is in line with the perimiter of the circle I want to put the attachment inside of.


I know how to script this myself, but how do I actually change the radius of the Particle Emitter?
I want the effect to be on the edge of this circle.

1 Like

You cant.
You need to select non flat object like a basepart to do that.
Bounds of part = radious on particle emiter.

1 Like

How do I change that in the Particle Emitter?

1 Like

If you want it to only appear on the outer edge, you’d have to write your own logic for positioning particles. It simply isn’t possible with just the ParticleEmitter because it uses the BoundingBox of whatever it is inside, so it won’t appear on only the outer edge.

You most likely could do it by doing this:

  1. Create a Loop that runs as often as your Particle’s original “Rate”
  2. In the loop, create a new attachment
  3. Clone the Particle and put it in the new attachment
  4. Position the attachment at a random point on a circle according to a “radius” property
  5. Run :Emit(1) on the new Particle
  6. Cleanup with either Debris or a manual :Destroy() call when the Particle is finished

You can get a random point on a circle with this code:

local val = math.random() * math.pi * 2
	
local offset = Vector3.new(math.cos(val)*radius,0,math.sin(val)*radius)
	
local finalPosition = origin + offset

You can set the radius automatically or you can get it from the original circle’s size property.

I know you said you knew how to script it yourself, but I’m not totally sure what you meant by asking how to change the radius of the Emitter. If this does end up helping, then that’s great. If not, then I apologize.

1 Like

Parent it to a basepart.
Simple as that.

1 Like

I was looking for a solution that worked without using scripts. Seems like there is none, though.

1 Like

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