Hi
I have a problem and i can't figure it out. How can you add a particle emitter to the torso of the players and the other question is how can i only activate the particle emitter when the player is running on walkspeed 30?
Here is what i got
local speed = Instance.new("ParticleEmitter",game.Workspace.player.Torso) speed.Texture = "http://www.roblox.com/asset/?id=281983189" speed.Size= NumberSequence.new(3) speed.LightEmission = 1 speed.Color = ColorSequence.new(100, 11, 11) speed.Acceleration = 1,1,1 speed.Lifetime = NumberRange.new(1) speed.Speed.Value = 5
local plr = game.Players.LocalPlayer local char = plr.Character local hum = char.Humanoid hum.Running:connect(function(speed) if speed > 30 then -- DO STUFF: else -- DO STUFF: end end
That would be the solution to your problem.
I hope with this you can set up and adapt your script to it.
Remember Humanoid has a Running
event.