Advertisement
Vzurxy

Untitled

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