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

Particle Emitters Help Again!?!

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"


1 comment

0

Remove the Values.

2 answers

✓ Accepted answer

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"

2 comments

0

The Texture still doesnt work

0

You have to subtract 1 from any IDs you get online, given they're the CORRECT id.

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