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

How does ParticleEmitter work in scripting?

Asked by 9 years ago

The new ROBLOX ParticleEmitter was recently added to ROBLOX Studio but after experimenting with it I came up with a very big question, some properties of the ParticleEmitter for example Size use the Graph where you can put different values and "envelopes" but... how would you do this using a Script? I know there's NumberRange.new and NumberSequence.new but I don't know how the second one works, on NumberRange you insert two values Max and Min while in NumberSequence you're supposed to use many values but if I do for example NumberSequence.new(1, 5, 2) the first number will be the only one working.

Can someone help me with this? I've already tried many ways and since none of them worked I came here to see if someone can help me.

0
That's a very good question. I'd like to know the answer to this as well. Spongocardo 1991 — 9y
0
You're kidding right? The API tells nothing about how can you set NumberSequence.new Slazerick 55 — 9y
0
In all honesty, to me, the 'ParticleEmitter' seems a bit, well, useless, and I fail to see the point of using it. TheeDeathCaster 2368 — 9y
View all comments (3 more)
1
@Slazerick If you click on the data type "NumberSequence", you'll be prompted with this page: http://wiki.roblox.com/index.php?title=API:NumberSequence. It'll tell you some things you may need to know about this property (read the bug section, too). Redbullusa 1580 — 9y
0
@Slazerick Besides that, the only solution I can think of is preset the particle emitter object and place it in one of the storage intances. Then just clone it if you want to replicate it from a script. Redbullusa 1580 — 9y
0
I'm under the impression that Roblox is unfinished with these new property types. Redbullusa 1580 — 9y

1 answer

Log in to vote
0
Answered by
DevChris 235 Moderation Voter
9 years ago

There's a simple answer to this: You cannot. The Scripting side of ParticleEmitter with the graphs wasn't thought through very well. My suggestion is to just constantly swap parts with ParticleEmitters if what you're trying to achieve with it isn't that advanced.

Ad

Answer this question