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

How do I set a ParticleEmitter's particle size to a specific number, not a NumberSequence?

Asked by 5 years ago

I have a RemoteEvent that when it's called, it summons and shoots a fireball. I've wanted to use a ParticleEmitter and I tried to set it to the size 0.5, but it expected a NumberSequence. How do I make it have only that size? Or how do I make a NumberSequence?

This is the script that was supposed to change the size of the particles:

Fire.Size = 0.5

1 answer

Log in to vote
0
Answered by 5 years ago

# Set number NumberSequence

The way to create a numbersequence that is a constant value, is by only supplying the value you want in the NumberSequence contructor, like such

NumberSequence.new (6)

This creates a sequence with 2 keypoints, that have 6 as their value


# Application

With that said, you could do the following:

lua local Fire = script.Parent -- or whatever reference you have Fire.Size = NumberSequence.new(0.5)


# Reference link(s)

To learn about more ways to construct NumberSequence values, visit here

Hopefully this Helped!

0
Thanks! Worked! AlphaSpawn 4 — 5y
Ad

Answer this question