Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- #@ReynnSolaris's|LocalScript@#
- #@"November 27, 2016"@#
- #@Copyright ^Ember Frameworks^@#
- #@Created at % 1:55:38 PM % Archived@#
- --]]
- --~~Locals~~--
- local p = game.Players.LocalPlayer
- local char = game.Workspace:WaitForChild(p.Name)
- local m = p:GetMouse()
- local cam = workspace.CurrentCamera
- local util = LoadLibrary("RbxUtility")
- local c, v3, ca, cf = util.Create, Vector3.new, CFrame.Angles, CFrame.new
- --~~Functions~~--
- local gaus = function(par,...)
- local blur = c("BlurEffect")({Parent = par})
- local args = {} for i,v in pairs(...) do args[i] = v end
- for arg, value in pairs(args) do
- if blur[arg] ~= nil then
- blur[arg] = value
- end
- end
- return blur
- end
- local blur = gaus(cam,{Size = 16})
- for i=24, 0, -1 do
- blur.Size = i
- wait(0.1)
- end
- local trail = function(part,...)
- local i = 0
- local dick = c("Model")({Parent = workspace, Name = "TrailModel"})
- 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)})
- local args = {} for i,v in pairs(...) do args[i] = v end
- local lastpart = nil
- dick.PrimaryPart = prta
- while part ~= nil do
- if part == nil then
- dick:Remove()
- break
- end
- i = i + 4 if i >= 360 then i = 0 end
- 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})
- game:GetService('Debris'):AddItem(prt, 5)
- local pos = cf(prt.CFrame.p, part.CFrame.p)
- if lastpart ~= nil then pos = cf(part.CFrame.p, lastpart.CFrame.p) end
- --part.CFrame * cf(0,0,prt.Size.X+0.2) *
- --prt.CFrame = part.CFrame * CFrame.new(0,-3,0)* ca(0,math.rad(i),math.rad(i)) * pos
- 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))
- spawn(function()
- for ia=1, 20 do
- prt.Size = prt.Size - v3(0.01,0.01,0.01)
- prt.Transparency = ia/20
- game:GetService('RunService').RenderStepped:wait()
- end
- prt:Remove()
- end)
- game:GetService('RunService').RenderStepped:wait()
- end
- end
- spawn(trail(char:WaitForChild'Torso', {Mat = "Neon", Size = v3(1,1,1), Color = BrickColor.Random()}))
- --~~End of Script~~--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement