Projectile Effect Issue

Hello!
I got an issue with enabling and disabling the effect

function Splash()
   local _FINDEFFECT = pie:WaitForChild("Splash")
   local splsh = Instance.new("Part", game.Workspace) splsh.Name = "SplashEffect"             
   splsh.Anchored = true splsh.CanCollide = false game.Debris:AddItem(splsh, 1)
   splsh.Transparency = 1
   splsh.Size = Vector3.new(1.5, 1.5, 1.5)
   splsh.CFrame = pie.CFrame
   local effect = _FINDEFFECT:Clone()
   effect.Parent = splsh
  ---------------------------------
   effect.Enabled = true
   wait(0.1)
   effect.Enabled = false
  ---------------------------------
   pie:Destroy()
end

There what happens:

GIF

https://gyazo.com/348d5c7f84c0f337c03a6bd63e6aa9c7

1 Like

ParticleEmitters have a Lifetime property. Add a wait(particle.Lifetime) before destroying the part (or use Debris:AddItem(part, particle.Lifetime))to ensure that all the particles have disappeared before the part is destroyed. The part being the parent of the ParticleEmitter, which in your code seems to be splsh. Don’t forget to remove the Debris:AddItem(splsh, 1) right after you create splsh

1 Like

It still doesn’t work.
I don’t know how to write that correctly.

I fixed it.
I just added a script inside particle Emitter

script.Parent.Enabled = false
1 Like