Particle emitters taking ~2secs to start spawning

(Not sure if this is the right place to post this)
I am cloning and parenting the particle emitter to the fireball but there is ~2sec delay between when its parented and the particles start emitting. Would greatly appreciate if someone could help he solve this problem

   --Server
        local Fire = game.ServerStorage.AbilityParts.SpikeThing:Clone()
	Fire.Parent = workspace.Abilities
	game.ReplicatedStorage.Remotes.AddParticles:FireAllClients(Fire)

   --Client
   game.ReplicatedStorage.Remotes.AddParticles.OnClientEvent:Connect(function(fire)
	local PE = game.ReplicatedStorage.ClientEffects.ParticleEmitter:Clone()
	PE.Parent = fire
   end)

https://gyazo.com/870463fb6e981752ee2a9d91a76f5d9e

6 Likes

You might want to try and increase the .Speed of the ParticleEmitter as they seem to emit very slowly. Maybe even the .Rate too as it limits how many emits can be present at the time.

Code-wise, there’s not much to say as it’s fairly simple.

I’ve tried doing both, i set the rate to 500 and the speed high and still the same problem, that’s why i’m confused. Also i don’t think its the code either, just posed it just in case you guys needed it.

Seems to just be server to client latency.

Set the speed to 0, and instead call :Emit(100) on the particle emitter. You can put any number in, just get a feel of what feels right. It will instantly emit any number you put.

3 Likes

My ping was 30 so i don’t understand why the delay would be that long. I also printed after cloning and parenting and it prints at the correct time.

Will try that now holefully it works

It works to ue particle:emit which shows that its being parented at the correct time

They start spawning at only like half a second latency, not two full seconds. It’s not totally unreasonable for it to be server client latency.

Particle:Emit() works at the correct time which shows it has parented properly.

I recommend making your own particle system with Emit() and Clear(), instead of using Roblox’s built in one.

If anything, you can use :Emit() at regular intervals until the particle emitter starts emitting for you.

2 Likes

Fair recommendation. Im just confused on why the build in system doesn’t work for me but works for other people.

1 Like