Help with size particle emitters

Im trying to make a partical emitter, and i have had tonsss of issues

when i make the partical emitter and try to make the size when i make it a number sequence, theres a error. Same with if i try to make it a numberrange. Any help?

	a.Size = NumberSequence(0.2,0.2)

Do this instead if you want to script it (example for the particle sizing in & out):

local keypoints = {
NumberSequenceKeypoint.new(0, 0),
NumberSequenceKeypoint.new(0.5, 1)
NumberSequenceKeypoint.new(1, 0)
}

particles.Size = NumberSequence.new(keypoints)

You must use .new to create the instance. NumberSequence is just the general sequence, NumberSequenceKeypoint creates an actual point in that sequence; in NumberSequenceKeypoint.new, the first number is the time (anywhere from 0 to 1), and the 2nd number is the Size.

If you want some randomness, there is also a third number in NumberSequenceKeypoint.new, the “envelope”, which allows for a range of randomness. For example, if I say “NumberSequenceKeypoint.new(0.5, 5, 2)”, the size of a particle may range from 3 to 7 since there is a max difference of 2 from the base size of 5.

1 Like