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

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

Asked by 5 years ago

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

0
its for beams and trails theking48989987 2147 — 5y

2 answers

Log in to vote
0
Answered by
xPolarium 1388 Moderation Voter
5 years ago
Edited 5 years ago

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.

Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Wiki Link It's used for Trails, Beams, and ParticleEmitters.

Answer this question