This is the strangest thing ever. So, I have a function set up that emit the particle.
local function effect(hit)
task.spawn(function()
for i,v in pairs(hit.Attachment:GetChildren()) do
if v:IsA("ParticleEmitter") then
v:Emit(1)
print(v)
end
end
end)
end
Everything works in my other game, but this just doesn’t emit. It a server script and it even print. It works when I enable it but not emits. It the same script I used as my other game. I made sure it positioned right too.
Yes I said it printing. The emit size isn’t the problem because I had it the same in my other games and it works perfectly fine. If you can, try replicate and let me know results it be appreciated.
I’ve had the same problem, and you can simply call the waiting function up there
local function effect(hit)
task.spawn(function()
task.wait(0.01)
for i,v in pairs(hit.Attachment:GetChildren()) do
if v:IsA("ParticleEmitter") then
v:Emit(1)
print(v)
end
end
end)
end
local function effect(hit)
task.spawn(function()
for i,v in pairs(hit.Attachment:GetChildren()) do
if v:IsA("ParticleEmitter") then
wait(.1)
v:Emit(1)
print(v)
end
end
end)
end