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)
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
tinblox11
(Tin)
September 10, 2023, 6:28am
#6
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
ZVNE15Z
(49ER_EMPERYAN)
September 10, 2023, 6:32am
#7
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
system
(system)
Closed
September 24, 2023, 7:51am
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.