For some reason the particle emitters persists on being stuck to the dummy. For reference UpSwirl is an attachment containing the particle emitters.
local pathToEmit = workspace.VFXPart.UpSwirl
local clone = pathToEmit:Clone()
clone.Parent = otherHrp
clone.Position = otherHrp.Position
for _,Particles in pairs(pathToEmit:GetDescendants()) do
if Particles:IsA("ParticleEmitter") then
for i = 1,3,1 do
task.wait(0.25)
Particles:Emit(Particles:GetAttribute("EmitCount"))
end
end
end
end)
How and where are you setting otherHrp? If it’s not set properly then it may be the reason.
You could print(otherHrp.Parent.Name) right before the code above to make sure it’s being set where you want it.
I’m getting hrp from sending a mouse.target over to the server, and then I check if the instance is a humanoidrootpart, then I fire to all clients which is where otherhrp is coming from, also yeah its printing what I want it to (which is the player I have my cursor on).