How can i fix this particle emitter it changes only 1 color and only works in studio?
Hello my particle emitter script only works in studio but i want it to work in game too. 1 color changed but the other one not. And how can i script the rate from the particle emitter?
Here is what i have!
01 | game.Players.PlayerAdded:connect( function (player) |
02 | player.CharacterAdded:connect( function (char) |
04 | local torso = char:FindFirstChild 'Torso' |
05 | local speed 2 = Instance.new( "ParticleEmitter" , torso) |
06 | local plr = game.Players.LocalPlayer |
07 | local char = plr.Character |
08 | local hum = char.Humanoid |
10 | hum.Running:connect( function (speed) |
12 | speed 2. Color = ColorSequence.new(Color 3. new( 255 , 82 , 2 ),Color 3. new( 255 , 72 , 0 )) |
14 | speed 2. Size = NumberSequence.new( 5 ) |
15 | speed 2. LightEmission = 0.62 |
16 | speed 2. Lifetime = NumberRange.new( 0 , 5 ) |
19 | speed 2. Color = ColorSequence.new(Color 3. new( 255 , 82 , 2 ),Color 3. new( 255 , 72 , 0 )) |
21 | speed 2. Size = NumberSequence.new( 0 ) |
22 | speed 2. LightEmission = 0 |
23 | speed 2. Lifetime = NumberRange.new( 1 ) |