Advertisement
memberhero

Immortal Script

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