Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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

Log in to vote
0
Answered by
xuefei123 214 Moderation Voter
7 years ago
Edited 7 years ago

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!

Ad

Answer this question