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

How can i fix this particle emitter it changes only 1 color and only works in studio?

Asked by 9 years ago

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!

01game.Players.PlayerAdded:connect(function(player)
02    player.CharacterAdded:connect(function(char)
03        if char then
04            local torso = char:FindFirstChild'Torso'
05            local speed2 = Instance.new("ParticleEmitter", torso)
06            local plr = game.Players.LocalPlayer
07            local char = plr.Character
08            local hum = char.Humanoid
09 
10hum.Running:connect(function(speed)
11    if speed > 30 then
12speed2.Color = ColorSequence.new(Color3.new(255,82,2),Color3.new(255,72,0))
14speed2.Size= NumberSequence.new(5)
15speed2.LightEmission = 0.62
View all 28 lines...

Answer this question