itchyzombie

roblox path(free to steel, rob, and FM)

Sep 24th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.03 KB | None | 0 0
  1. --[[
  2.  
  3. hl/http://code.stypi.com/raw/grubsteak/toys/path.lua
  4.  
  5. ]]
  6.  
  7.  
  8. pl=game.Players.LocalPlayer
  9. character=pl.Character
  10. character.Humanoid.WalkSpeed=100
  11. stop=false
  12. rot=0
  13. doNormalColor=true
  14. lastCF=character.Torso.CFrame*CFrame.new(0, -3.1, 0)*CFrame.Angles(0, rot, 0)
  15. game:GetService("RunService").RenderStepped:connect(function()
  16.    
  17.     local part=Instance.new("Part", workspace.Base)
  18.     part.FormFactor="Custom"
  19.     part.Material=Enum.Material.SmoothPlastic
  20.     if not stop then
  21.         newCF=character.Torso.CFrame*CFrame.new(0, -3.1, 0)--*CFrame.Angles(0, rot, 0)
  22.     else
  23.         newCF=character.Torso.CFrame*CFrame.new(0, -5.6, 0)--*CFrame.Angles(0, rot, 0)
  24.     end
  25.     part.Size=Vector3.new(2, 0.2, (newCF.p-lastCF.p).magnitude)
  26.     part.CFrame=CFrame.new(newCF.p:lerp(lastCF.p, 0.5), lastCF.p)
  27.         lastCF=newCF
  28.     part.Anchored=true
  29.     rot=rot+(math.pi/50)
  30.    
  31.  
  32.     part.TopSurface="SmoothNoOutlines"
  33.     part.BottomSurface="SmoothNoOutlines"
  34.     part.LeftSurface="SmoothNoOutlines"
  35.     part.RightSurface="SmoothNoOutlines"
  36.     part.FrontSurface="SmoothNoOutlines"
  37.     part.BackSurface="SmoothNoOutlines"
  38.     game:GetService("Debris"):AddItem(part, 1)
  39.     part.BrickColor=BrickColor.new("Black")
  40.         local m=Instance.new("BlockMesh", part)
  41.         m.Scale=Vector3.new(1, 0.001, 1)
  42.         m.Offset=Vector3.new(0, 0.16, 0)
  43.     coroutine.wrap(function()
  44.         --part.CanCollide=true
  45.         wait(0.5)
  46.         local m=Instance.new("BlockMesh", part)
  47.         m.Offset=Vector3.new(0, 0.16, 0)
  48.         part.Material=Enum.Material.Neon
  49.        
  50.         if doNormalColor then
  51.         part.BrickColor=BrickColor.new(math.sin(tick()), math.noise(tick()%(math.pi*2))+0.5, math.cos(tick()))
  52.         else
  53.         part.BrickColor=BrickColor.new(math.noise(part.CFrame.X)*100, math.noise(part.CFrame.Y)*100, math.noise(part.CFrame.Z)*100)
  54.         end
  55.         for i=1, 10 do
  56.             m.Scale=Vector3.new(1, 0, 0)*(1-(i/10)) +Vector3.new(0, 0.001, 1)
  57.             part.Transparency=(i/10)
  58.             wait(.05)
  59.         end
  60.     end)()
  61.    
  62. end)
  63.  
  64.  
  65.  
  66. local m=pl:GetMouse()
  67. m.KeyDown:connect(function(k)
  68.     if k=="0" then
  69.         stop=true
  70.     end
  71. end)
  72.  
  73. m.KeyUp:connect(function(k)
  74.     if k=="0" then
  75.         stop=false
  76.     end
  77. end)
Add Comment
Please, Sign In to add comment