Advertisement
aiden50_70

light speed

Apr 15th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. wait()
  2. local r = game.Players.LocalPlayer
  3. local d = r.Character
  4. local c = workspace.CurrentCamera
  5. local ld = false
  6. local False = false
  7. local blur
  8. function reset(blur)
  9. for i = 1, 50 do
  10. blur.Size = blur.Size - 0.25
  11. wait()
  12. end
  13. c.FieldOfView = 70
  14. end
  15. function LightSpeed()
  16. ld = true
  17. blur = Instance.new("BlurEffect",game.Lighting)
  18. blur.Size = 0
  19. local i = 1
  20. local a = Instance.new("Sound",d)
  21. a.SoundId = 'rbxassetid://3152498762'
  22. a.Volume = 3
  23. a:Play()
  24. local p = Instance.new("Part",workspace)
  25. p.CanCollide = false
  26. p.Anchored = true
  27. p.Transparency = 1
  28. p.Name = "Destination"
  29. p.CFrame = d.HumanoidRootPart.CFrame
  30. local parts = {}
  31. local parts2 = {}
  32. workspace.CurrentCamera.CameraSubject = p
  33. -- d.Humanoid.Name = "n"
  34. -- local w = Instance.new("Weld",d.HumanoidRootPart)
  35. -- w.Part0 = d.UpperTorso
  36. -- w.Part1 = d.HumanoidRootPart
  37. -- w.C0 = CFrame.new(0,500,0)
  38. repeat
  39. d.HumanoidRootPart.CFrame = CFrame.new(0,999999,0)
  40. local pt = Instance.new("Part",workspace)
  41. pt.Anchored = true
  42. pt.CanCollide = false
  43. pt.Shape = 'Ball'
  44. pt.Size = Vector3.new(1.5,1.5,1.5)
  45. pt.Material = 'Neon'
  46. pt.CFrame = p.CFrame
  47. table.insert(parts,pt)
  48. i=i + .1
  49. blur.Size = blur.Size + 0.25
  50. if blur.Size > 9 then
  51. blur.Size = 9
  52. i = i + 1
  53. end
  54. p.CFrame = p.CFrame * CFrame.new(0,0,-i * 5)
  55. c.FieldOfView = c.FieldOfView + 10
  56. wait()
  57. local pt = Instance.new("Part",workspace)
  58. pt.Anchored = true
  59. pt.CanCollide = false
  60. pt.Shape = 'Ball'
  61. pt.Size = Vector3.new(1.5,1.5,1.5)
  62. pt.Material = 'Neon'
  63. pt.CFrame = p.CFrame
  64. pt.BrickColor = BrickColor.Black()
  65. table.insert(parts2,pt)
  66. until ld == false
  67. --w:Destroy()
  68. --d.n.Name = "Humanoid"
  69. d.HumanoidRootPart.Anchored = false
  70. p:Destroy()
  71. workspace.CurrentCamera.CameraSubject = d.Humanoid
  72. for i,v in pairs(parts) do
  73. if v then
  74. coroutine.wrap(function()
  75. for i = 1, 30 do
  76. wait()
  77. v.Transparency = v.Transparency + 1/30
  78. v.Size = v.Size + Vector3.new(.5,.5,.5)
  79. end
  80. v:Destroy()
  81. end)()
  82. end
  83. end
  84. for i,v in pairs(parts2) do
  85. if v then
  86. coroutine.wrap(function()
  87. for i = 1, 20 do
  88. wait()
  89. v.Transparency = v.Transparency + 1/20
  90. v.Size = v.Size + Vector3.new(1.5,1.5,1.5)
  91. end
  92. v:Destroy()
  93. end)()
  94. end
  95. end
  96. d.HumanoidRootPart.CFrame = p.CFrame
  97. reset(blur)
  98. ld = False
  99. blur:Destroy()
  100. end
  101.  
  102. local m = r:GetMouse()
  103. r.CharacterAdded:Connect(function(jj)
  104. d = jj
  105. end)
  106. d.Humanoid.Died:Connect(function()
  107. if blur == nil then return end
  108. reset(blur)
  109. end)
  110. m.KeyDown:Connect(function(k)
  111. k=k:lower()
  112. if k=="g" and ld == False then
  113. LightSpeed()
  114. end
  115. end)
  116.  
  117. m.KeyUp:Connect(function(k)
  118. k=k:lower()
  119. if k=="g" then
  120. ld=false
  121. end
  122. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement