Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can i change the ParticleEmitter's Speed with script?

I put game.blah.blah.blah.ParticleEmitter.Speed = 5 -- Blah means personal

It says Workspace.blah.Script:5: bad argument #3 to 'Speed' (NumberRange expected, got number)

Please help! D:

1 answer

✓ Accepted answer

It says a "NumberRange" that's basically a range of numbers inside a parentheses, here is an example for your script:

local emitter = game.Workspace.Part.ParticleEmitter--Define this for your custom script
emitter.Speed = NumberRange.new(5,5)--Number of the speed, first one is the lowest it can choose and then the second is the most

Hope this helped! If it did, accept the answer it gives us both rep!

This discussion is preserved as it was. New answers, comments, and votes are closed.