Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. Mouse = player:GetMouse()
  3.  
  4. --
  5. cooldown = 1
  6. Mouse.KeyDown:connect(function(key)
  7. key = key:lower()
  8. if key == "e" and cooldown >0 then
  9.  
  10. local x = Instance.new("Part",workspace)
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. x.BrickColor = BrickColor.new("Royal purple")
  18. x.Transparency = .1
  19. x.TopSurface = "Smooth"
  20. x.BottomSurface = "Smooth"
  21.  
  22. x.CFrame = player.Character.Head.CFrame * CFrame.new(0,-5,11)
  23. x.Size = Vector3.new (25,1,25)
  24. local v = Instance.new("BodyVelocity", x)
  25. v.Velocity = player.Character.Head.CFrame.lookVector * 90
  26. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  27.  
  28.  
  29.  
  30.  
  31.  
  32. cooldown = cooldown - 1
  33.  
  34. wait(1) -- Cooldown time--
  35.  
  36. cooldown = 1
  37.  
  38.  
  39. wait(1)
  40. x:Destroy()
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. end
  48.  
  49. end)
  50. player = game.Players.LocalPlayer
  51. Mouse = player:GetMouse()
  52.  
  53. --
  54. cooldown = 1
  55. Mouse.KeyDown:connect(function(key)
  56. key = key:lower()
  57. if key == "f" and cooldown >0 then
  58.  
  59. local x = Instance.new("Part",workspace)
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. x.BrickColor = BrickColor.new("Royal purple")
  67. x.Transparency = 0
  68. x.TopSurface = "Smooth"
  69. x.BottomSurface = "Smooth"
  70.  
  71. x.CFrame = player.Character.Head.CFrame * CFrame.new(0,-1,-15)
  72. x.Size = Vector3.new (25,5,25)
  73. local v = Instance.new("BodyVelocity", x)
  74. v.Velocity = player.Character.Head.CFrame.lookVector * 500
  75. v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  76.  
  77.  
  78.  
  79.  
  80.  
  81. cooldown = cooldown - 1
  82.  
  83. wait(.1) -- Cooldown time--
  84.  
  85. cooldown = 1
  86.  
  87.  
  88. wait(30)
  89. x:Destroy()
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96. end
  97.  
  98. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement