ZKCMCheats

[FE] Ragdoll

Mar 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.58 KB | None | 0 0
  1. LocalPlayer = game:GetService("Players").LocalPlayer
  2. LocalPlayer.Character.Humanoid:MoveTo(LocalPlayer.Character.HumanoidRootPart.Position + LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 10)
  3. LocalPlayer.Character.Humanoid.Jump = true
  4. wait(0.5)
  5. function Iterate(instance, func)
  6. for i, v in next, instance:GetChildren() do
  7. func(v)
  8. end
  9. end
  10. limbs = {
  11. ["Right Leg"] = true;
  12. ["Right Arm"] = true;
  13. ["Left Leg"] = true;
  14. ["Left Arm"] = true;
  15. }
  16. Iterate(LocalPlayer.Character, function(v)
  17. if v:IsA("BasePart") then
  18. local attachment = Instance.new("Attachment")
  19. attachment.Parent = v
  20. attachment.Name = (v.Name .. "[Attachment]")
  21. if limbs[v.Name] then
  22. attachment.Position = Vector3.new(0, v.Size.Y/2, 0)
  23. elseif v.Name == "Head" then
  24. attachment.Position = Vector3.new(0, -v.Size.Y/2, 0)
  25. attachment.Rotation = Vector3.new(0, 0, -90)
  26. end
  27. end
  28. end)
  29. local leftLegAttachment = Instance.new("Attachment")
  30. leftLegAttachment.Position = Vector3.new(-.5, -1, 0)
  31. leftLegAttachment.Rotation = Vector3.new(0, -90, 0)
  32. local rightLegAttachment = Instance.new("Attachment")
  33. rightLegAttachment.Position = Vector3.new(.5, -1, 0)
  34. rightLegAttachment.Rotation = Vector3.new(0, -90, 0)
  35. rightLegAttachment.Parent, leftLegAttachment.Parent = LocalPlayer.Character.Torso, LocalPlayer.Character.Torso
  36. jointAttachments = {
  37. ['Head'] = {
  38. ['Attachment0'] = LocalPlayer.Character.Torso['NeckAttachment'];
  39. ['Attachment1'] = LocalPlayer.Character.Head['Head[Attachment]'];
  40. };
  41. ['Left Arm'] = {
  42. ['Attachment0'] = LocalPlayer.Character.Torso['LeftCollarAttachment'];
  43. ['Attachment1'] = LocalPlayer.Character['Left Arm']['Left Arm[Attachment]'];
  44. };
  45. ['Right Arm'] = {
  46. ['Attachment0'] = LocalPlayer.Character.Torso['RightCollarAttachment'];
  47. ['Attachment1'] = LocalPlayer.Character['Right Arm']['Right Arm[Attachment]'];
  48. };
  49. ['Left Leg'] = {
  50. ['Attachment0'] = leftLegAttachment;
  51. ['Attachment1'] = LocalPlayer.Character['Left Leg']['Left Leg[Attachment]'];
  52. };
  53. ['Right Leg'] = {
  54. ['Attachment0'] = rightLegAttachment;
  55. ['Attachment1'] = LocalPlayer.Character['Right Leg']['Right Leg[Attachment]'];
  56. };
  57. }
  58. LocalPlayer.Character.Humanoid.PlatformStand = true
  59. Iterate(LocalPlayer.Character, function(v)
  60. if v:IsA("BasePart") then
  61. if jointAttachments[v.Name] then
  62. local ballSocketJoint = Instance.new("BallSocketConstraint")
  63. ballSocketJoint.Parent = v
  64. ballSocketJoint.Radius = 0.15
  65. ballSocketJoint.Attachment0, ballSocketJoint.Attachment1 = jointAttachments[v.Name]['Attachment0'], jointAttachments[v.Name]['Attachment1']
  66. end
  67. end
  68. end)
  69. Iterate(LocalPlayer.Character.Torso, function(v)
  70. if v:IsA("Motor") then
  71. v:Remove()
  72. end
  73. end)
Add Comment
Please, Sign In to add comment