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

What's a NumberSequence ?

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

✓ Accepted answer

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.

1 comment

0

Can you give an example of how to set one?

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