Advertisement
yonidrori

Untitled

Sep 13th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. -- created by pr0xel of v3rmillion
  2. -- > click and drag players for fun :)
  3.  
  4. Player = game.Players.LocalPlayer
  5. Char = Player.Character
  6. Mouse = Player:GetMouse()
  7. CurrentBP = -1
  8. Dist = -1
  9. DoBP = false
  10. Mouse.Button1Down:connect(function()
  11. if Mouse.Target then
  12. DoBP = true
  13. Dist = (Mouse.Target.Position - Char.Torso.Position).magnitude
  14. CurrentBP = Instance.new("BodyPosition", Mouse.Target)
  15. CurrentBP.Name = "lel rekt m8"
  16. CurrentBP.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  17. CurrentBP.P = 100000
  18. end
  19. end)
  20. Mouse.Button1Up:connect(function()
  21. DoBP = false
  22. if CurrentBP ~= -1 then
  23. CurrentBP:Destroy()
  24. end
  25. CurrentBP = -1
  26. end)
  27. game:GetService("RunService").RenderStepped:connect(function()
  28. if DoBP and CurrentBP ~= -1 then
  29. local un = -(Char.Torso.Position - Mouse.Hit.p).unit * Dist
  30. CurrentBP.position = Char.Torso.Position + un
  31. end
  32. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement