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

What's a NumberSequence ?

Asked by 8 years ago

i got this error Workspace.Part.ParticleEmitter.Script:2: bad argument #3 to 'Transparency' (NumberSequence expected, got number)

and im not sure how to do a NumberSequence when im trying to change the Transparency on ParticleEmitters.

1 answer

Log in to vote
2
Answered by
Uglypoe 557 Donator Moderation Voter
8 years ago

A number sequence is essentially an array of numbers used in a property (in typical examples; ParticleEmitters) to perform a changing action. Because transparency in particleemitters can change over time, they use Number Sequences. When setting this transparency, use NumberSequence.new(Array of transparencies with numbers between 0 and 1). You can read more about them at http://wiki.roblox.com/index.php?title=API:NumberSequence.

0
Can you give an example of how to set one? Nickoakz 231 — 8y
Ad

Answer this question