Advertisement
aiden50_70

Untitled

May 7th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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. repeat
  25. i=i + .5
  26. blur.Size = blur.Size + 0.25
  27. if blur.Size > 9 then
  28. blur.Size = 9
  29. i = i + 1
  30. end
  31. d.HumanoidRootPart.CFrame = d.HumanoidRootPart.CFrame * CFrame.new(0,0,-i * 5)
  32. c.FieldOfView = c.FieldOfView + 10
  33. wait()
  34. until ld == false
  35. reset(blur)
  36. ld = False
  37. blur:Destroy()
  38. end
  39.  
  40. local m = r:GetMouse()
  41. r.CharacterAdded:Connect(function(jj)
  42. d = jj
  43. end)
  44. d.Humanoid.Died:Connect(function()
  45. if blur == nil then return end
  46. reset(blur)
  47. end)
  48. m.KeyDown:Connect(function(k)
  49. k=k:lower()
  50. if k=="g" and ld == False then
  51. LightSpeed()
  52. end
  53. end)
  54.  
  55. m.KeyUp:Connect(function(k)
  56. k=k:lower()
  57. if k=="g" then
  58. ld=false
  59. end
  60. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement