Advertisement
Guest User

Untitled

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