I wanted to have a winter breathing effect and I was wondering if you could enable and disable the particle effect in a loop, to activate every like 15 seconds or something.
If you want to do it in a loop ~
1 | repeat -- This is what triggers the loop |
2 | script.Parent.Enabled = false -- The particle is off |
3 | wait ( 15 ) -- This is how long you have to wait, change the number if you want to make it longer/shorter |
4 | script.Parent.Enabled = true -- Particle ends on a true variable therefore it will continue to loop |
5 | until false -- The loop won't end until the particle ends on a false variable |
if the particle is in a model ~
1 | repeat |
2 | script.Parent.Parent.ParticleEmitter.Enabled = false |
3 | wait( 15 ) |
4 | script.Parent.Parent.ParticleEmitter.Enabled = true |
5 | until false |
There is a property in the Particle etmitter called "Enabled"
you can use it like this.
1 | script.Parent.Enabled = false -- particles dont emit |
2 | wait( 3 ) |
3 | script.Parent.Enabled = true -- WOAH THEY START ETMITTING |
i hope this helps you.