✓ Accepted answer
A NumberSequence is a sequence of number keypoints used to determine a value (not the same as animation keypoints, or keyframes as they're referred to). To keep things nice and simple it's usually a good idea to use 3 keypoints for any given NumberSequence. A keypoint for a NumberSequence is created using the NumberSequenceKeypoint constructor:
NumberSequenceKeypoint.new(time, value)
time is the time at which the keypoint is hit, and value is the value of the variable that the keypoint will represent. For transparency purposes, you could go back in your loop and set the keypoint values:
obj.Transparency = NumberSequence.new({
NumberSequenceKeypoint.new(0, i/100)
NumberSequenceKeypoint.new(0.5, i/100)
NumberSequenceKeypoint.new(1, i/100)
})
You can't perform arithmetic on a NumberSequence with just one number; this is because it's a sequence of numbers. A property of a Beam that is similar to Transparency is Color, since that needs a ColorSequence with ColorSequenceKeypoints.
2 comments
It's a number sequence.
how do I make the beam fade with a number sequence?