Advertisement
Animescapetower

Rainbow Particle Trail

Mar 26th, 2018
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. print("Hello world!")
  2. Character = game.Players.LocalPlayer.Character
  3. local NewPath = Instance.new("Part")
  4. NewPath.Name = "Path3"
  5. NewPath.Transparency = 1
  6. NewPath.FormFactor = Enum.FormFactor.Custom
  7. NewPath.CanCollide = false
  8. NewPath.Size = Vector3.new(2,.2,1)
  9. NewPath.TopSurface = Enum.SurfaceType.Smooth
  10. NewPath.BottomSurface = Enum.SurfaceType.Smooth
  11. NewPath.Anchored = true
  12. NewPath.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) -- So it won't weigh down the player
  13. NewPath.Parent = Character
  14.  
  15.  
  16. local PathWeld = Instance.new("Weld", NewPath)
  17. PathWeld.Part0 = Character.Torso
  18. PathWeld.Part1 = NewPath
  19. PathWeld.C1 = CFrame.new(0,2.9,0)
  20.  
  21. NewPath.Anchored = false
  22.  
  23. ParticleEmitter3 = Instance.new("ParticleEmitter")
  24. ParticleEmitter3.Name = "Particle"
  25. ParticleEmitter3.Parent = NewPath
  26. ParticleEmitter3.Transparency = NumberSequence.new(1,0.25,0,0)
  27. ParticleEmitter3.Size = NumberSequence.new(0,0.15000000596046,0.20000000298023,1.4375001192093,0.625,0.74999988079071,0.24999976158142,0.81250011920929,0.12499988079071,0)
  28. ParticleEmitter3.Color = ColorSequence.new(Color3.new(255, 255, 0),Color3.new(85, 0, 255),Color3.new(255, 0, 0),Color3.new(0,0,255),Color3.new(0,255,255),Color3.new(255,0,255),Color3.new(255,170,255),Color3.new(255,0,127),Color3.new(0,170,255),Color3.new(255,255,255),Color3.new(0,0,0))
  29. ParticleEmitter3.Enabled = false
  30. ParticleEmitter3.LightEmission = 0.625
  31. ParticleEmitter3.Texture = "rbxassetid://373435404"
  32. ParticleEmitter3.ZOffset = 0.25
  33. ParticleEmitter3.Acceleration = Vector3.new(0, 0.100000001, 0)
  34. ParticleEmitter3.Lifetime = NumberRange.new(2.5, 5)
  35. ParticleEmitter3.Rate = 80
  36. ParticleEmitter3.Speed = NumberRange.new(0.5, 0.5)
  37. ParticleEmitter3.VelocitySpread = 90
  38. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.705882, 0.894118, 1),Color3.new(1, 1, 0),Color3.new(0.333333, 0, 1),Color3.new(1, 0, 0),Color3.new(0, 0, 1),Color3.new(0, 1, 1),Color3.new(1, 0, 1),Color3.new(1, 0.666667, 1),Color3.new(1, 0, 0.498039),Color3.new(0, 0.666667, 1),Color3.new(1, 1, 1),Color3.new(0, 0, 0))
  39.  
  40.  
  41. Debris = game:GetService("Debris")
  42.  
  43. Path = NewPath
  44. Still = Vector3.new(0,0,0)
  45.  
  46. while true do
  47. wait()
  48. if Character.Humanoid.MoveDirection ~= Still then
  49. Path.Particle.Enabled = true
  50. else
  51. Path.Particle.Enabled = false
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement