Advertisement
dahpiglz

Untitled

Jun 4th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. mouse = player:GetMouse()
  3.  
  4. rotationtarget = nil
  5. targetposition = nil
  6.  
  7. function click()
  8. if mouse.Target ~= nil then
  9. if mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  10. if mouse.Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  11. rotationtarget = mouse.Target.Parent.HumanoidRootPart
  12. targetposition = mouse.Target.Parent.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0)
  13. --local p = Instance.new("BodyPosition")
  14. --p.Parent = mouse.Target.Parent.HumanoidRootPart
  15. --p.Position = mouse.Target.Parent.HumanoidRootPart.Position + Vector3.new(0, 50, 0)
  16. --p.MaxForce = Vector3.new(100000, 100000, 100000)
  17. --p.P = 100000
  18. end
  19. end
  20. end
  21. end
  22.  
  23. mouse.Button1Down:Connect(click)
  24.  
  25. while true do
  26. print(rotationtarget)
  27. wait(0.25)
  28. if rotationtarget ~= nil then
  29. print(2)
  30. rotationtarget.Orientation = Vector3.new(math.random(1, 360), math.random(1, 360), math.random(1,360))
  31. rotationtarget.Position = targetposition
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement