Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- hl/http://code.stypi.com/raw/grubsteak/toys/path.lua
- ]]
- pl=game.Players.LocalPlayer
- character=pl.Character
- character.Humanoid.WalkSpeed=100
- stop=false
- rot=0
- doNormalColor=true
- lastCF=character.Torso.CFrame*CFrame.new(0, -3.1, 0)*CFrame.Angles(0, rot, 0)
- game:GetService("RunService").RenderStepped:connect(function()
- local part=Instance.new("Part", workspace.Base)
- part.FormFactor="Custom"
- part.Material=Enum.Material.SmoothPlastic
- if not stop then
- newCF=character.Torso.CFrame*CFrame.new(0, -3.1, 0)--*CFrame.Angles(0, rot, 0)
- else
- newCF=character.Torso.CFrame*CFrame.new(0, -5.6, 0)--*CFrame.Angles(0, rot, 0)
- end
- part.Size=Vector3.new(2, 0.2, (newCF.p-lastCF.p).magnitude)
- part.CFrame=CFrame.new(newCF.p:lerp(lastCF.p, 0.5), lastCF.p)
- lastCF=newCF
- part.Anchored=true
- rot=rot+(math.pi/50)
- part.TopSurface="SmoothNoOutlines"
- part.BottomSurface="SmoothNoOutlines"
- part.LeftSurface="SmoothNoOutlines"
- part.RightSurface="SmoothNoOutlines"
- part.FrontSurface="SmoothNoOutlines"
- part.BackSurface="SmoothNoOutlines"
- game:GetService("Debris"):AddItem(part, 1)
- part.BrickColor=BrickColor.new("Black")
- local m=Instance.new("BlockMesh", part)
- m.Scale=Vector3.new(1, 0.001, 1)
- m.Offset=Vector3.new(0, 0.16, 0)
- coroutine.wrap(function()
- --part.CanCollide=true
- wait(0.5)
- local m=Instance.new("BlockMesh", part)
- m.Offset=Vector3.new(0, 0.16, 0)
- part.Material=Enum.Material.Neon
- if doNormalColor then
- part.BrickColor=BrickColor.new(math.sin(tick()), math.noise(tick()%(math.pi*2))+0.5, math.cos(tick()))
- else
- part.BrickColor=BrickColor.new(math.noise(part.CFrame.X)*100, math.noise(part.CFrame.Y)*100, math.noise(part.CFrame.Z)*100)
- end
- for i=1, 10 do
- m.Scale=Vector3.new(1, 0, 0)*(1-(i/10)) +Vector3.new(0, 0.001, 1)
- part.Transparency=(i/10)
- wait(.05)
- end
- end)()
- end)
- local m=pl:GetMouse()
- m.KeyDown:connect(function(k)
- if k=="0" then
- stop=true
- end
- end)
- m.KeyUp:connect(function(k)
- if k=="0" then
- stop=false
- end
- end)
Add Comment
Please, Sign In to add comment