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

What is NumberSequence.new and what do I use it for?

I came across NumberSequence.new. What is it? And to use it?

1 comment

0

its for beams and trails

2 answers

✓ Accepted answer

Number Sequences are types used to set a value on Transparency or Size for objects like Particle Emitters or Trails.

Depending on what you enter in the arguments of the paranthesis can make the Transparency or Size look different.

You could set the Transparency and Size to a ParticleEmitter like so in a script:

local emitter = Instance.new("ParticleEmitter")

--This would make the Transparency start at 0 and slowly turn invisible, at 1.
emitter.Transparency = NumberSequence.new(0, 1)

--This would make the size of the emitter to 5
emitter.Size = NumberSequence.new(5)

emitter.Parent = workspace.SomePart

You can even edit NumberSequences using the Properties window while a ParticleEmitter or Trail is selected.

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