Advertisement
HenloMyDude

goaded

Aug 27th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1.  
  2. plr = owner
  3. plr.Character.Archivable = true
  4. alive = true
  5.  
  6. lastpos = Instance.new("Part",plr.Character)
  7. lastpos.Transparency = 1
  8. lastpos.Position = plr.Character.HumanoidRootPart.Position
  9. lastpos.Anchored = true
  10. lastpos.CanCollide = false
  11.  
  12. spare = plr.Character:Clone()
  13. spare.Parent = workspace
  14. spare.HumanoidRootPart.Anchored = true
  15. spare.HumanoidRootPart.CFrame = CFrame.new(0, -500, 0)
  16. spare.Animate.Disabled = true
  17.  
  18. spare.Animate.Disabled = false
  19.  
  20. forcefield = Instance.new("ForceField",spare)
  21. forcefield.Visible = false
  22.  
  23. fakecharacter = plr.Character:Clone()
  24. fakecharacter.Parent = workspace
  25. fakecharacter.Humanoid:Destroy()
  26. animator = plr.Character.Animate
  27. animator.Disabled = false
  28.  
  29. fakehumanoid = plr.Character.Humanoid:Clone()
  30. fakehumanoid.Parent = fakecharacter
  31.  
  32. wait(.1)
  33.  
  34. plr.Character = fakecharacter
  35. rootpart = plr.Character.HumanoidRootPart
  36. NLS([[
  37.  
  38. workspace.CurrentCamera.CameraSubject = script.Parent.Humanoid
  39.  
  40. ]],fakecharacter)
  41.  
  42. function refit()
  43. alive = false
  44. animator.Disabled = true
  45. fakecharacter = spare:Clone()
  46. fakecharacter.Parent = workspace
  47. fakecharacter.Animate.Disabled = false
  48. fakecharacter.HumanoidRootPart.Anchored = false
  49. fakecharacter.HumanoidRootPart.CFrame = lastpos.CFrame
  50. wait(.1)
  51. plr.Character = fakecharacter
  52. animator = plr.Character.Animate
  53. alive = true
  54. animator.Disabled = false
  55. NLS([[
  56.  
  57. workspace.CurrentCamera.CameraSubject = script.Parent.Humanoid
  58.  
  59. ]],fakecharacter)
  60.  
  61. end
  62.  
  63. while true do
  64. wait()
  65. plr = owner
  66. if plr.Character then
  67. alive = true
  68. if rootpart then
  69. lastpos.Position = rootpart.Position
  70. end
  71. else
  72. alive = false
  73. wait(.1)
  74. refit()
  75. end
  76. for _,v in pairs (plr.Character:children()) do
  77. if v:IsA("Part") then
  78. getitback = v
  79. v.Anchored = false
  80. if v:FindFirstChildOfClass("Motor6D") then
  81. motor = v:FindFirstChildOfClass("Motor6D")
  82. if not motor then
  83. if plr.Character.Humanoid.RigType == "R15" then
  84. local neck = Instance.new("Motor6D")
  85. neck.Part0 = plr.Character.Head
  86. neck.Part1 = plr.Character.UpperTorso
  87. neck.C0 = CFrame.new(0, -1.25, 0)
  88. else
  89. local neck = Instance.new("Motor6D")
  90. neck.Part0 = plr.Character.Head
  91. neck.Part1 = plr.Character.Torso
  92. neck.C0 = CFrame.new(0, -1.5, 0)
  93. end
  94. end
  95. end
  96. if v:FindFirstChildOfClass("BodyVelocity") then
  97. bv = v:FindFirstChildOfClass("BodyVelocity")
  98. bv:Destroy()
  99. end
  100. if getitback then
  101.  
  102. else
  103. refit()
  104. end
  105. end
  106. end
  107. if plr.Character.Humanoid.Health > 99 then
  108. alive = true
  109. else
  110. alive = false
  111. wait(.1)
  112. refit()
  113. end
  114. if not rootpart then
  115. refit()
  116. wait(.5)
  117. if plr.Character.Humanoid.RigType == "R15" then
  118. local rootj = Instance.new("Motor6D")
  119. rootj.Part0 = plr.Character.UpperTorso
  120. rootj.Part1 = plr.Character.HumanoidRootPart
  121. rootj.C0 = CFrame.new(0, -0.25, 0)
  122. else
  123. local rootj = Instance.new("Motor6D")
  124. rootj.Part0 = plr.Character.Torso
  125. rootj.Part1 = plr.Character.HumanoidRootPart
  126. rootj.C0 = CFrame.new(0, 0, 0)
  127. end
  128. end
  129. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement