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

How to change start and end color particle effects?

Asked by
NotSoNorm 777 Moderation Voter
10 years ago

ok how do I change the start and end rgb values of a particleEmitter?

01function onButtonClicked()
02    if game.Workspace.STAGELIGHTS.BlueStageLights.Center.PointLight.Enabled == false then
03game.Workspace.STAGELIGHTS.BlueStageLights.Center.PointLight.Enabled = true
04game.Workspace.STAGELIGHTS.BlueStageLights.Left.PointLight.Enabled = true
05game.Workspace.STAGELIGHTS.BlueStageLights.Right.PointLight.Enabled = true
06game.Workspace.CrowdParticles.One.ParticleEmitter.Color = ColorSequence.new(Color3.new(255/255,255/255,0), Color3.new(0,255/255,255/255))
07 
08--Particles
09 
10[[
11game.Workspace.CrowdParticles.Two.ParticleEmitter.Color.Start 
12game.Workspace.CrowdParticles.Three.ParticleEmitter.Color.Start 
13game.Workspace.CrowdParticles.Four.ParticleEmitter.Color.Start 
14game.Workspace.CrowdParticles.Five.ParticleEmitter.Color.Start 
15game.Workspace.CrowdParticles.Six.ParticleEmitter.Color.Start 
View all 29 lines...

3 answers

Log in to vote
1
Answered by 10 years ago
01function onButtonClicked()
02    if game.Workspace.STAGELIGHTS.BlueStageLights.Center.PointLight.Enabled == false then
03game.Workspace.STAGELIGHTS.BlueStageLights.Center.PointLight.Enabled = true
04game.Workspace.STAGELIGHTS.BlueStageLights.Left.PointLight.Enabled = true
05game.Workspace.STAGELIGHTS.BlueStageLights.Right.PointLight.Enabled = true
06game.Workspace.CrowdParticles.One.ParticleEmitter.Color = ColorSequence.new(Color3.new(255/255,255/255,0), Color3.new(0,255/255,255/255))
07 
08--Particles
09 
10--[[
11game.Workspace.CrowdParticles.Two.ParticleEmitter.Color.Start 
12game.Workspace.CrowdParticles.Three.ParticleEmitter.Color.Start 
13game.Workspace.CrowdParticles.Four.ParticleEmitter.Color.Start 
14game.Workspace.CrowdParticles.Five.ParticleEmitter.Color.Start 
15game.Workspace.CrowdParticles.Six.ParticleEmitter.Color.Start 
View all 29 lines...
Ad
Log in to vote
1
Answered by 10 years ago
1script.Parent.ParticleEmitter.Color =ColorSequence.new(Color3.new( 0/255, 0/255, 0/255), Color3.new( 0/255, 0/255,0/255))

The First Color3 is StartColour and the Second Color3 is EndColour. :)

0
That's not working :< NotSoNorm 777 — 10y
Log in to vote
-1
Answered by
KenzaXI 166
10 years ago
1function onButtonClicked()
2    if game.Workspace.STAGELIGHTS.BlueStageLights.Center.PointLight.Enabled == false then
3game.Workspace.STAGELIGHTS.BlueStageLights.Center.PointLight.Enabled = true
4game.Workspace.STAGELIGHTS.BlueStageLights.Left.PointLight.Enabled = true
5game.Workspace.STAGELIGHTS.BlueStageLights.Right.PointLight.Enabled = true
6--Particles
7game.Workspace.CrowdParticles.One.ParticleEmitter.Color.Start.Color3 = Color3.new(255/255,255/255,0)
8game.Workspace.CrowdParticles.One.ParticleEmitter.Color.End.Color3 = Color3.new(0,255/255,255/255)

I usually make color changing s cripts and I've always used Color3, However I've never come against (Number/Number, Number/Number), I think your porblems lies there, I read through all the pages in the wiki and yet again never once did I come up against (Number/Number, Number/Number) Try doing this

1(255, 255, 255)
0
Color3 arguments are between 0 and 1. That's why you have Color3.new(55/255, 255/255, 0/255) the fraction is between 0 and 1 YellowoTide 1992 — 10y

Answer this question