SomeRandomD00D

Untitled

Jun 10th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. function LimbRip()
  2. ATTACK = true
  3. Rooted = false
  4. local TARGET = nil
  5. local ROOT = nil
  6. local HUMAN = nil
  7. local DIST = 4
  8. Speed = 12
  9. for i=0, 1, 0.1 / Animation_Speed do
  10. Swait()
  11. local CHILDREN = workspace:GetDescendants()
  12. for index, CHILD in pairs(CHILDREN) do
  13. if CHILD.ClassName == "Model" and CHILD ~= Character then
  14. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  15. if HUM then
  16. local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  17. if TORSO and HUM.Health > 0 then
  18. if (TORSO.Position - RightArm.Position).Magnitude <= DIST then
  19. DIST = (TORSO.Position - RightArm.Position).Magnitude
  20. ROOT = TORSO
  21. HUMAN = HUM
  22. TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  23. end
  24. end
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment