yoinkydoodlewastaken

test2

May 3rd, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. plr = game.Players.Rohan_Kishiba
  2. repeat wait() until plr.Character
  3. char = plr.Character
  4.  
  5. -- Credit to shack for the anti death system and Rohan for blatantly stealing it :)
  6.  
  7. local BODY = {}
  8. LeftArm = char["Left Arm"]
  9. RightLeg = char["Right Leg"]
  10. LeftLeg = char["Left Leg"]
  11. for _, c in pairs(char:GetDescendants()) do
  12. if c:IsA("BasePart") and c.Name ~= "Handle" then
  13. if c ~= char.HumanoidRootPart and c ~= char.Torso and c ~= char.Head and c ~= char["Right Arm"] and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  14. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  15. end
  16. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  17. elseif c:IsA("JointInstance") then
  18. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  19. end
  20. end
  21. for e = 1, #BODY do
  22. if BODY[e] ~= nil then
  23. local STUFF = BODY[e]
  24. local PART = STUFF[1]
  25. local PARENT = STUFF[2]
  26. local MATERIAL = STUFF[3]
  27. local COLOR = STUFF[4]
  28. local TRANSPARENCY = STUFF[5]
  29. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  30. PART.Material = MATERIAL
  31. PART.Color = COLOR
  32. PART.Transparency = TRANSPARENCY
  33. end
  34. PART.AncestryChanged:Connect(function()
  35. PART.Parent = PARENT
  36. end)
  37. end
  38. end
  39. function refit()
  40. char.Parent = workspace
  41. for e = 1, #BODY do
  42. if BODY[e] ~= nil then
  43. local STUFF = BODY[e]
  44. local PART = STUFF[1]
  45. local PARENT = STUFF[2]
  46. local MATERIAL = STUFF[3]
  47. local COLOR = STUFF[4]
  48. local TRANSPARENCY = STUFF[5]
  49. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  50. PART.Material = MATERIAL
  51. PART.Color = COLOR
  52. PART.Transparency = TRANSPARENCY
  53. end
  54. if PART.Parent ~= PARENT then
  55. char:FindFirstChildOfClass("Humanoid"):remove()
  56. PART.Parent = PARENT
  57. Humanoid = Instance.new("Humanoid",char)
  58. end
  59. end
  60. end
  61. end
  62. char.Humanoid.Died:connect(function()
  63. refit()
Add Comment
Please, Sign In to add comment