Advertisement
memberhero

immortal script

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