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 9 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.


Cash = Instance.new("ParticleEmitter") Cash.Parent = game.Workspace.XxmanwolfxX.Head2 Cash.Size.Value = 1.5 Cash.Transparency.Value = 0 Cash.LightEmission.Value = 0 Cash.Color.Value = 255,255,255 Cash.Acceleration.Value = 0,5,0 Cash.Lifetime.Min.Value = 1 Cash.Lifetime.Max.Value = 1 Cash.Speed.Value = 5 Cash.Texture.Value = "http://www.roblox.com/asset/?id=217001241"
0
Remove the Values. woodengop 1134 — 9y

2 answers

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 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

local Cash = Instance.new("ParticleEmitter",workspace.XxmanwolfxX.Head2)
Cash.Size = NumberSequence.new(1.5)
Cash.Transparency = NumberSequence.new(0)
Cash.LightEmission = 0
Cash.Color = 255,255,255
Cash.Acceleration = 0,5,0
Cash.Lifetime = NumberRange.new(1)
Cash.Speed = 5
Cash.Texture = "http://www.roblox.com/asset/?id=217001241"
0
The Texture still doesnt work attackonkyojin 135 — 9y
0
You have to subtract 1 from any IDs you get online, given they're the CORRECT id. Goulstem 8144 — 9y
Ad
Log in to vote
6
Answered by 9 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 — 9y
0
It's not nessecarily an error, more like stopping because of wrong logic. LegitimatlyMe 519 — 9y
0
The script works its just the Texture part isnt working attackonkyojin 135 — 9y

Answer this question