Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hello world!")
- Character = game.Players.LocalPlayer.Character
- local NewPath = Instance.new("Part")
- NewPath.Name = "Path3"
- NewPath.Transparency = 1
- NewPath.FormFactor = Enum.FormFactor.Custom
- NewPath.CanCollide = false
- NewPath.Size = Vector3.new(2,.2,1)
- NewPath.TopSurface = Enum.SurfaceType.Smooth
- NewPath.BottomSurface = Enum.SurfaceType.Smooth
- NewPath.Anchored = true
- NewPath.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) -- So it won't weigh down the player
- NewPath.Parent = Character
- local PathWeld = Instance.new("Weld", NewPath)
- PathWeld.Part0 = Character.Torso
- PathWeld.Part1 = NewPath
- PathWeld.C1 = CFrame.new(0,2.9,0)
- NewPath.Anchored = false
- ParticleEmitter3 = Instance.new("ParticleEmitter")
- ParticleEmitter3.Name = "Particle"
- ParticleEmitter3.Parent = NewPath
- ParticleEmitter3.Transparency = NumberSequence.new(1,0.25,0,0)
- ParticleEmitter3.Size = NumberSequence.new(0,0.15000000596046,0.20000000298023,1.4375001192093,0.625,0.74999988079071,0.24999976158142,0.81250011920929,0.12499988079071,0)
- 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))--[[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))]] --rainbow
- ParticleEmitter3.Enabled = false
- ParticleEmitter3.LightEmission = 0.625
- ParticleEmitter3.Texture = "rbxassetid://373435404"
- ParticleEmitter3.ZOffset = 0.25
- ParticleEmitter3.Acceleration = Vector3.new(0, 0.100000001, 0)
- ParticleEmitter3.Lifetime = NumberRange.new(2.5, 5)
- ParticleEmitter3.Rate = 80
- ParticleEmitter3.Speed = NumberRange.new(0.5, 0.5)
- ParticleEmitter3.VelocitySpread = 90
- 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))
- Debris = game:GetService("Debris")
- Path = NewPath
- Still = Vector3.new(0,0,0)
- while true do
- wait()
- if Character.Humanoid.MoveDirection ~= Still then
- Path.Particle.Enabled = true
- else
- Path.Particle.Enabled = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement