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

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

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

✓ Accepted answer

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:

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!

1 comment

0

Thanks! Worked!

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