Advertisement
Axelpuff

Antikill

Sep 4th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. local Player = owner
  2. local Character = Player.Character
  3. Humanoid = Character.Humanoid
  4. IT = Instance.new
  5.  
  6. local BODY = {}
  7. for _, c in pairs(Character:GetDescendants()) do
  8. if c:IsA("BasePart") and c.Name ~= "Handle" then
  9. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  10. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  11. end
  12. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  13. elseif c:IsA("JointInstance") then
  14. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  15. end
  16. end
  17.  
  18. function refit()
  19. Character.Parent = workspace
  20. for e = 1, #BODY do
  21. if BODY[e] ~= nil then
  22. local STUFF = BODY[e]
  23. local PART = STUFF[1]
  24. local PARENT = STUFF[2]
  25. local MATERIAL = STUFF[3]
  26. local COLOR = STUFF[4]
  27. local TRANSPARENCY = STUFF[5]
  28. --local SIZE = STUFF[6]
  29. local NAME = STUFF[7]
  30. if PART.ClassName == "Part" and PART ~= RootPart then
  31. PART.Material = MATERIAL
  32. PART.Transparency = TRANSPARENCY
  33. PART.Name = NAME
  34. end
  35. if PART.Parent ~= PARENT then
  36. Humanoid:remove()
  37. PART.Parent = PARENT
  38. Humanoid = IT("Humanoid",Character)
  39. end
  40. end
  41. end
  42. end
  43.  
  44. Humanoid.Died:connect(function()
  45. refit()
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement