Advertisement
Vzurxy

Untitled

Aug 12th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.91 KB | None | 0 0
  1. wait()
  2. plrmodel = game.Players.LocalPlayer.Character
  3. for index, child in pairs(plrmodel:GetDescendants()) do
  4. if child.ClassName == "Motor6D" then
  5. if child.Name ~= "Neck" then
  6. child:Destroy()
  7. end
  8. end
  9. end
  10.  
  11. game:GetService("RunService").Heartbeat:connect(function()
  12. plrmodel.Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
  13. end)
  14. function getAttachment0(attachmentName)
  15. for _,child in next,plrmodel:GetChildren() do
  16. local attachment = child:FindFirstChild(attachmentName)
  17. if attachment then
  18. return attachment
  19. end
  20. end
  21. end
  22. local removeHRP = true
  23. local head = plrmodel["Head"]
  24. local leftarm = plrmodel["Left Arm"]
  25. local leftleg = plrmodel["Left Leg"]
  26. local rightleg = plrmodel["Right Leg"]
  27. local rightarm = plrmodel["Right Arm"]
  28. local torso = plrmodel.Torso
  29. local root = plrmodel.HumanoidRootPart
  30. if removeHRP == true then
  31. root:Destroy()
  32. end
  33. local rootA =Instance.new("Attachment")
  34. local HeadA = Instance.new("Attachment")
  35. local LeftArmA = Instance.new("Attachment")
  36. local LeftLegA = Instance.new("Attachment")
  37. local RightArmA = Instance.new("Attachment")
  38. local RightLegA = Instance.new("Attachment")
  39. local TorsoA = Instance.new("Attachment")
  40. local TorsoA1 = Instance.new("Attachment")
  41. local TorsoA2 = Instance.new("Attachment")
  42. local TorsoA3 = Instance.new("Attachment")
  43. local TorsoA4 = Instance.new("Attachment")
  44. local TorsoA5 = Instance.new("Attachment")
  45. local function set1()
  46. HeadA.Name = "HeadA"
  47. HeadA.Parent = head
  48. HeadA.Position = Vector3.new(0, -0.5, 0)
  49. HeadA.Rotation = Vector3.new(0, 0, 0)
  50. HeadA.Axis = Vector3.new(1, 0, 0)
  51. HeadA.SecondaryAxis = Vector3.new(0, 1, 0)
  52. LeftArmA.Name = "LeftArmA"
  53. LeftArmA.Parent = leftarm
  54. LeftArmA.Position = Vector3.new(0.5, 1, 0)
  55. LeftArmA.Rotation = Vector3.new(0, 0, 0)
  56. LeftArmA.Axis = Vector3.new(1, 0, 0)
  57. LeftArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  58. LeftLegA.Name = "LeftLegA"
  59. LeftLegA.Parent = leftleg
  60. LeftLegA.Position = Vector3.new(0, 1, 0)
  61. LeftLegA.Rotation = Vector3.new(0, 0, 0)
  62. LeftLegA.Axis = Vector3.new(1, 0, 0)
  63. LeftLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  64. RightArmA.Name = "RightArmA"
  65. RightArmA.Parent = rightarm
  66. RightArmA.Position = Vector3.new(-0.5, 1, 0)
  67. RightArmA.Rotation = Vector3.new(0, 0, 0)
  68. RightArmA.Axis = Vector3.new(1, 0, 0)
  69. RightArmA.SecondaryAxis = Vector3.new(0, 1, 0)
  70. RightLegA.Name = "RightLegA"
  71. RightLegA.Parent = rightleg
  72. RightLegA.Position = Vector3.new(0, 1, 0)
  73. RightLegA.Rotation = Vector3.new(0, 0, 0)
  74. RightLegA.Axis = Vector3.new(1, 0, 0)
  75. RightLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  76. rootA.Name= "rootA"
  77. rootA.Parent = root
  78. rootA.Position = Vector3.new(0, 0, 0)
  79. rootA.Rotation = Vector3.new(0, 90, 0)
  80. rootA.Axis = Vector3.new(0, 0, -1)
  81. rootA.SecondaryAxis = Vector3.new(0, 1, 0)
  82. end
  83. local function set2()
  84. TorsoA.Name = "TorsoA"
  85. TorsoA.Parent = torso
  86. TorsoA.Position = Vector3.new(0.5, -1, 0)
  87. TorsoA.Rotation = Vector3.new(0, 0, 0)
  88. TorsoA.Axis = Vector3.new(1, 0, 0)
  89. TorsoA.SecondaryAxis = Vector3.new(0, 1, 0)
  90. TorsoA1.Name = "TorsoA1"
  91. TorsoA1.Parent = torso
  92. TorsoA1.Position = Vector3.new(-0.5, -1, 0)
  93. TorsoA1.Rotation = Vector3.new(0, 0, 0)
  94. TorsoA1.Axis = Vector3.new(1, 0, 0)
  95. TorsoA1.SecondaryAxis = Vector3.new(0, 1, 0)
  96. TorsoA2.Name = "TorsoA2"
  97. TorsoA2.Parent = torso
  98. TorsoA2.Position = Vector3.new(-1, 1, 0)
  99. TorsoA2.Rotation = Vector3.new(0, 0, 0)
  100. TorsoA2.Axis = Vector3.new(1, 0, 0)
  101. TorsoA2.SecondaryAxis = Vector3.new(0, 1, 0)
  102. TorsoA3.Name = "TorsoA3"
  103. TorsoA3.Parent = torso
  104. TorsoA3.Position = Vector3.new(1, 1, 0)
  105. TorsoA3.Rotation = Vector3.new(0, 0, 0)
  106. TorsoA3.Axis = Vector3.new(1, 0, 0)
  107. TorsoA3.SecondaryAxis = Vector3.new(0, 1, 0)
  108. TorsoA4.Name = "TorsoA4"
  109. TorsoA4.Parent = torso
  110. TorsoA4.Position = Vector3.new(0, 1, 0)
  111. TorsoA4.Rotation = Vector3.new(0, 0, 0)
  112. TorsoA4.Axis = Vector3.new(1, 0, 0)
  113. TorsoA4.SecondaryAxis = Vector3.new(0, 1, 0)
  114. TorsoA5.Name = "TorsoA5"
  115. TorsoA5.Parent = torso
  116. TorsoA5.Position = Vector3.new(0, 0, 0)
  117. TorsoA5.Rotation = Vector3.new(0, 90, 0)
  118. TorsoA5.Axis = Vector3.new(0, 0, -1)
  119. TorsoA5.SecondaryAxis = Vector3.new(0, 1, 0)
  120. end
  121. local function set3()
  122. end
  123. spawn(set1);
  124. spawn(set2);
  125. local HA = Instance.new("HingeConstraint")
  126. HA.Parent = head
  127. HA.Attachment0 = HeadA
  128. HA.Attachment1 = TorsoA4
  129. HA.Enabled = true
  130. HA.LimitsEnabled=true
  131. HA.LowerAngle=0
  132. HA.UpperAngle=0
  133. local LAT = Instance.new("BallSocketConstraint")
  134. LAT.Parent = leftarm
  135. LAT.Attachment0 = LeftArmA
  136. LAT.Attachment1 = TorsoA2
  137. LAT.Enabled = true
  138. LAT.LimitsEnabled=true
  139. LAT.UpperAngle=90
  140. local RAT = Instance.new("BallSocketConstraint")
  141. RAT.Parent = rightarm
  142. RAT.Attachment0 = RightArmA
  143. RAT.Attachment1 = TorsoA3
  144. RAT.Enabled = true
  145. RAT.LimitsEnabled=true
  146. RAT.UpperAngle=90
  147. local HA = Instance.new("BallSocketConstraint")
  148. HA.Parent = head
  149. HA.Attachment0 = HeadA
  150. HA.Attachment1 = TorsoA4
  151. HA.Enabled = true
  152. local TLL = Instance.new("BallSocketConstraint")
  153. TLL.Parent = torso
  154. TLL.Attachment0 = TorsoA1
  155. TLL.Attachment1 = LeftLegA
  156. TLL.Enabled = true
  157. TLL.LimitsEnabled=true
  158. TLL.UpperAngle=90
  159. local TRL = Instance.new("BallSocketConstraint")
  160. TRL.Parent = torso
  161. TRL.Attachment0 = TorsoA
  162. TRL.Attachment1 = RightLegA
  163. TRL.Enabled = true
  164. TRL.LimitsEnabled=true
  165. TRL.UpperAngle=90
  166. local RTA = Instance.new("BallSocketConstraint")
  167. RTA.Parent = root
  168. RTA.Attachment0 = rootA
  169. RTA.Attachment1 = TorsoA5
  170. RTA.Enabled = true
  171. RTA.LimitsEnabled=true
  172. RTA.UpperAngle=0
  173. head.Velocity = head.CFrame.lookVector*30
  174.  
  175. for _,child in next,plrmodel:GetChildren() do
  176. if child:IsA("Accoutrement") then
  177. for _,part in next,child:GetChildren() do
  178. if part:IsA("BasePart") then
  179. part.Parent = plrmodel
  180. child:remove()
  181. local attachment1 = part:FindFirstChildOfClass("Attachment")
  182. local attachment0 = getAttachment0(attachment1.Name)
  183. if attachment0 and attachment1 then
  184. local constraint = Instance.new("HingeConstraint")
  185. constraint.Attachment0 = attachment0
  186. constraint.Attachment1 = attachment1
  187. constraint.LimitsEnabled = true
  188. constraint.UpperAngle = 0
  189. constraint.LowerAngle = 0
  190. constraint.Parent = plrmodel
  191. end
  192. end
  193. end
  194. end
  195. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement