Particle getting cut off

My particle is getting cut off every 2 times i activate it, what could possibly be the reason to this??
It used to work back then until I tried to add a blood particle, this experienced the same issue and for some reason it affected the past ones?

As you can see in the video the attachment is there and is being created but for some reason it doesn’t emit and looks like it gets cut off

local partiPlayer = {}

function partiPlayer:PlayParticle(asset, cframe, emit)
	local attachment = Instance.new("Attachment")
	
	attachment.Parent = workspace
	attachment.CFrame = cframe 
	
	local particle : ParticleEmitter = asset:Clone()
	
	particle.Parent = attachment
	
	particle:Emit(emit)
	
	game:GetService("Debris"):AddItem(attachment, 5)
end

return partiPlayer
function swordVFX.parryStart(character)
	local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
	soundPlayer:playSound(character, soundPlayer.soundList.Classes.Swordmaster.SwordParry.startup)
	partiPlayer:PlayParticle(game.ReplicatedStorage.Assets.VFX.star, humanoidRootPart.CFrame, 2)
end
1 Like

ParticleEmitters often have problems emitting if they were just created. Try adding a wait() between creating the instance and emitting. Note that it has to be a regular wait, not task.wait().

2 Likes

Thank you so much! It worked—i’ll try to cache the particle to improve it.

2 Likes

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