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

Particle Emitters Help Again!?!

Asked by 10 years ago

So my emitters work now, but the texture and the size won't change to what I want it to be? Here is the code.

01Cash = Instance.new("ParticleEmitter")
02Cash.Parent = game.Workspace.XxmanwolfxX.Head2
03Cash.Size.Value = 1.5
04Cash.Transparency.Value = 0
05Cash.LightEmission.Value = 0
06Cash.Color.Value = 255,255,255
07Cash.Acceleration.Value = 0,5,0
08Cash.Lifetime.Min.Value = 1
09Cash.Lifetime.Max.Value = 1
10Cash.Speed.Value = 5
0
Remove the Values. woodengop 1134 — 10y

2 answers

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
10 years ago

Your Problem

You're indexing 'Value' when setting the properties of the ParticleEmitter,

Like LegitimatelyMe said, you're setting the properties with incorrect datatypes.

How to Fix

Don't index Value when setting properties, just set the property to the value.

  • Size and Transparency properties should be NumberSequences.
  • Lifetime property should be a NumberRange.
  • Color property should be a ColorSequence.

Code

1local Cash = Instance.new("ParticleEmitter",workspace.XxmanwolfxX.Head2)
2Cash.Size = NumberSequence.new(1.5)
3Cash.Transparency = NumberSequence.new(0)
4Cash.LightEmission = 0
5Cash.Color = 255,255,255
6Cash.Acceleration = 0,5,0
7Cash.Lifetime = NumberRange.new(1)
8Cash.Speed = 5
0
The Texture still doesnt work attackonkyojin 135 — 10y
0
You have to subtract 1 from any IDs you get online, given they're the CORRECT id. Goulstem 8144 — 10y
Ad
Log in to vote
6
Answered by 10 years ago

ParticleEmitter

the Size and Transparency Property is a NumberSequence

Lifetime is a NumberRange

Color is a ColorSeqeunce

The Texture is fine, but it won't get to that line because of errors.

0
IT doesnt come up with errors? attackonkyojin 135 — 10y
0
It's not nessecarily an error, more like stopping because of wrong logic. LegitimatlyMe 519 — 10y
0
The script works its just the Texture part isnt working attackonkyojin 135 — 10y

Answer this question