Advertisement
kingkoolie

Untitled

Dec 1st, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. #@ReynnSolaris's|LocalScript@#
  3. #@"November 27, 2016"@#
  4. #@Copyright ^Ember Frameworks^@#
  5. #@Created at % 1:55:38 PM % Archived@#
  6. --]]
  7. --~~Locals~~--
  8. local p = game.Players.LocalPlayer
  9. local char = game.Workspace:WaitForChild(p.Name)
  10. local m = p:GetMouse()
  11. local cam = workspace.CurrentCamera
  12. local util = LoadLibrary("RbxUtility")
  13. local c, v3, ca, cf = util.Create, Vector3.new, CFrame.Angles, CFrame.new
  14. --~~Functions~~--
  15. local gaus = function(par,...)
  16. local blur = c("BlurEffect")({Parent = par})
  17. local args = {} for i,v in pairs(...) do args[i] = v end
  18. for arg, value in pairs(args) do
  19. if blur[arg] ~= nil then
  20. blur[arg] = value
  21. end
  22. end
  23. return blur
  24. end
  25. local blur = gaus(cam,{Size = 16})
  26. for i=24, 0, -1 do
  27. blur.Size = i
  28. wait(0.1)
  29. end
  30.  
  31. local trail = function(part,...)
  32. local i = 0
  33. local dick = c("Model")({Parent = workspace, Name = "TrailModel"})
  34. local prta = c("Part")({Parent = dick, TopSurface = "SmoothNoOutlines", BottomSurface = "SmoothNoOutlines", RightSurface = "SmoothNoOutlines", LeftSurface = "SmoothNoOutlines", FrontSurface = "SmoothNoOutlines", BackSurface = "SmoothNoOutlines", CanCollide = false, Anchored = true, Transparency = 1, Size = Vector3.new(.2,.2,.2),CFrame = char.Torso.CFrame*CFrame.new(0,0,-5)})
  35. local args = {} for i,v in pairs(...) do args[i] = v end
  36. local lastpart = nil
  37. dick.PrimaryPart = prta
  38. while part ~= nil do
  39. if part == nil then
  40. dick:Remove()
  41. break
  42. end
  43. i = i + 4 if i >= 360 then i = 0 end
  44. local prt = c("Part")({Parent = dick, TopSurface = "SmoothNoOutlines", BottomSurface = "SmoothNoOutlines", RightSurface = "SmoothNoOutlines", LeftSurface = "SmoothNoOutlines", FrontSurface = "SmoothNoOutlines", BackSurface = "SmoothNoOutlines", CanCollide = false, Anchored = true, Size = args.Size, BrickColor = args.Color, Material = args.Mat})
  45. game:GetService('Debris'):AddItem(prt, 5)
  46. local pos = cf(prt.CFrame.p, part.CFrame.p)
  47. if lastpart ~= nil then pos = cf(part.CFrame.p, lastpart.CFrame.p) end
  48. --part.CFrame * cf(0,0,prt.Size.X+0.2) *
  49. --prt.CFrame = part.CFrame * CFrame.new(0,-3,0)* ca(0,math.rad(i),math.rad(i)) * pos
  50. prt.CFrame = CFrame.new(char:WaitForChild'Torso'.CFrame.X+math.cos(math.rad(i))*5,char:WaitForChild'Torso'.CFrame.Y,char:WaitForChild'Torso'.CFrame.Z+math.sin(math.rad(i))*5)* ca(0,math.rad(i),math.rad(i))
  51. spawn(function()
  52. for ia=1, 20 do
  53. prt.Size = prt.Size - v3(0.01,0.01,0.01)
  54. prt.Transparency = ia/20
  55. game:GetService('RunService').RenderStepped:wait()
  56. end
  57. prt:Remove()
  58. end)
  59. game:GetService('RunService').RenderStepped:wait()
  60. end
  61. end
  62.  
  63. spawn(trail(char:WaitForChild'Torso', {Mat = "Neon", Size = v3(1,1,1), Color = BrickColor.Random()}))
  64.  
  65.  
  66. --~~End of Script~~--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement