I've tried to get this to work but the output is saying that I'm using a bad argument,
Here is my code,
1 | local p = script.Parent |
2 | local pe = p.ParticleEmitter |
3 |
4 | pe.Lifetime = 5 |
It's probably a very simple fix, I've most likely just made a mistake, but I can't spot it out, thanks!
Use the NumberRange.new()
constructor, since ParticleEmitter.Lifetime
is a NumberRange property.
1 | Part = script.Parent |
2 | ParticleEmitter = Part.ParticleEmitter |
3 |
4 | ParticleEmitter.Lifetime = NumberRange.new( 8 , 10 ) -- This constructor accepts 1 or 2 arguments. |