MimeThaClown

Untitled

Feb 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. p = game.Players.LocalPlayer
  2.  
  3. c = p.Character
  4. Cooldown = false
  5. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  6. c = game.Players.LocalPlayer.Character
  7. if Cooldown == false and key == "f" then
  8. Cooldown = true
  9. local Part = Instance.new("Part")
  10.  
  11. Part.Size = Vector3.new(7.5,7.5,7.5)
  12. wait(.5)
  13. Part.Parent = c
  14. Part.CFrame = c.UpperTorso.CFrame * CFrame.new(0,0,-1.5)
  15. Part.BrickColor = BrickColor.new("Lapis")
  16. Part.CanCollide = false
  17. Part.Transparency = .5
  18. Part.Material = "Neon"
  19. Part.Shape = "Ball"
  20. local Vel = Instance.new("BodyVelocity")
  21. Vel.Parent = Part
  22. local c = game.Players.LocalPlayer.Character
  23. Vel.Velocity = c.HumanoidRootPart.CFrame.lookVector * 100
  24. Vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  25. Mouse = game.Players.LocalPlayer:GetMouse()
  26. c.HumanoidRootPart.CFrame = CFrame.new(c.HumanoidRootPart.Position,c.HumanoidRootPart.Position + Vector3.new(Mouse.hit.x,0,Mouse.hit.z))
  27. local Touch = false
  28. Part.Touched:connect(function(hit)
  29. if Touch == false and hit.Parent ~= nil then
  30. if hit.Parent:FindFirstChild("Humanoid")~= nil then
  31. Character = game.Players.LocalPlayer.Character
  32. if hit.Parent.Name ~= Character.Name then
  33. Touch = true
  34. hit.Parent.Humanoid:TakeDamage(65)
  35. local velly = Instance.new("BodyVelocity")
  36. velly.Parent = hit.Parent.HumanoidRootPart
  37. velly.Velocity = Vector3.new(Part.CFrame.lookVector.x,Part.CFrame.lookVector.y,Part.CFrame.lookVector.z*-50)
  38. velly.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  39. wait(.5)
  40. Part:Destroy()
  41. velly:Destroy()
  42. end
  43. end
  44. end
  45. end)
  46. wait(1)
  47. if Part~= nil then
  48. Part:Destroy()
  49. end
  50. wait(1)
  51. Cooldown = false
  52. end
  53. end)
Add Comment
Please, Sign In to add comment