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!
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) if char then local torso = char:FindFirstChild'Torso' local speed2 = Instance.new("ParticleEmitter", torso) local plr = game.Players.LocalPlayer local char = plr.Character local hum = char.Humanoid hum.Running:connect(function(speed) if speed > 30 then speed2.Color = ColorSequence.new(Color3.new(255,82,2),Color3.new(255,72,0)) speed2.Texture = "http://www.roblox.com/asset/?id=281983189" speed2.Size= NumberSequence.new(5) speed2.LightEmission = 0.62 speed2.Lifetime = NumberRange.new(0,5) else speed2.Color = ColorSequence.new(Color3.new(255,82,2),Color3.new(255,72,0)) speed2.Texture = "http://www.roblox.com/asset/?id=281983189" speed2.Size= NumberSequence.new(0) speed2.LightEmission = 0 speed2.Lifetime = NumberRange.new(1) end end) end end) end)