Particles not working when cloned

I’m trying to emit a particle every time the player is hit, but I’ve been facing some issues

Using

	local hit = replicatedStorage.Particles.hitparticle
	hit.Parent = workspace
	hit.CFrame = player.Character:GetPrimaryPartCFrame() * CFrame.new(0,-1.5,0)
	hit.Rings.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255))
	hit.Rings2.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255))
	hit.Rings:Emit(25)
	hit.Rings2:Emit(25)
	game.Debris:AddItem(hit,0.2)

The particle works correctly, but only once as the particle is removed

When I clone the particle, it stops working and doesn’t even show up

	local hit = replicatedStorage.Particles.hitparticle:Clone()
	hit.Parent = workspace
	hit.CFrame = player.Character:GetPrimaryPartCFrame() * CFrame.new(0,-1.5,0)
	hit.Rings.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255))
	hit.Rings2.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255))
	hit.Rings:Emit(25)
	hit.Rings2:Emit(25)
	game.Debris:AddItem(hit,0.2)

Try putting

as the end statement

Tried, did not seem to work
Particle still doesn’t show up when cloned

try removing this statment temporarly

Still no changes, only stopped the cloned particle from being deleted

For some reason the particle ONLY shows up if its not cloned, but works only once

cloning is necessary if I want the particle to show every time

Is your hitparticle anchored? If it isn’t, it might be freefalling and thus destroying itself too early, or simply getting out of view. Try looking to see if it is anchored - if it isn’t, anchor it and that should fix your issue

Don’t forget to mark this post as a solution if this solved your issue :slightly_smiling_face:

local hit = replicatedStorage.Particles.hitparticle
    hit.Anchored = true
    hit.CanCollide = false
	hit.Parent = workspace
	hit.CFrame = player.Character:GetPrimaryPartCFrame() * CFrame.new(0,-1.5,0)
	hit.Rings.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255))
	hit.Rings2.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255))
	hit.Rings:Emit(25)
	hit.Rings2:Emit(25)
	game.Debris:AddItem(hit,0.2)

Try this out, pyro from tf2.

This should work, or otherwise, you’re destroying it too early, so early that the particles cant load.

Turns out I was destroying the particle too early before it loaded, adding a slight delay before the particles emitted fixed the problem

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