MimeThaClown

Untitled

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