yoinkydoodlewastaken

test3

May 3rd, 2020 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. print("god why did you make this dumb head")
  2. warn("well heres ur refit.")
  3. ArtificialHB = Instance.new("BindableEvent", script)
  4. ArtificialHB.Name = "Heartbeat"
  5. script:WaitForChild("Heartbeat")
  6.  
  7. Player = Rohan_Kishiba
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. RootPart = Character["HumanoidRootPart"]
  14. Torso = Character["Torso"]
  15. Head = Character["Head"]
  16. RightArm = Character["Right Arm"]
  17. LeftArm = Character["Left Arm"]
  18. RightLeg = Character["Right Leg"]
  19. LeftLeg = Character["Left Leg"]
  20. RootJoint = RootPart["RootJoint"]
  21. Neck = Torso["Neck"]
  22. RightShoulder = Torso["Right Shoulder"]
  23. LeftShoulder = Torso["Left Shoulder"]
  24. RightHip = Torso["Right Hip"]
  25. LeftHip = Torso["Left Hip"]
  26.  
  27. Character = Player.Character
  28. Humanoid = Character.Humanoid
  29.  
  30. local BODY = {}
  31. for _, c in pairs(Character:GetDescendants()) do
  32. if c:IsA("BasePart") and c.Name ~= "Handle" then
  33. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  34. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  35. end
  36. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  37. elseif c:IsA("JointInstance") then
  38. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  39. end
  40. end
  41.  
  42. function refit()
  43. Character.Parent = workspace
  44. for e = 1, #BODY do
  45. if BODY[e] ~= nil then
  46. local STUFF = BODY[e]
  47. local PART = STUFF[1]
  48. local PARENT = STUFF[2]
  49. local MATERIAL = STUFF[3]
  50. local COLOR = STUFF[4]
  51. local TRANSPARENCY = STUFF[5]
  52. --local SIZE = STUFF[6]
  53. local NAME = STUFF[7]
  54. if PART.ClassName == "Part" and PART ~= RootPart then
  55. PART.Material = MATERIAL
  56. PART.Transparency = TRANSPARENCY
  57. PART.Name = NAME
  58. end
  59. if PART.Parent ~= PARENT then
  60. Humanoid:remove()
  61. PART.Parent = PARENT
  62. Humanoid = IT("Humanoid",Character)
  63. end
  64. end
  65. end
  66. end
  67.  
  68. Humanoid.Died:connect(function()
  69. refit()
  70. end)
Add Comment
Please, Sign In to add comment