Advertisement
robloxscriptsbbbbb

this script is need ragdoll death

Aug 10th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. byapsteyu = ""
  2. LocalPlayer = game:GetService("Players").LocalPlayer -- this is fixing a script
  3. wait(0.001)
  4. function Iterate(instance, func)
  5. for i, v in next, instance:GetChildren() do
  6. func(v)
  7. end
  8. end
  9. limbs = {
  10. ["Right Leg"] = true;
  11. ["Right Arm"] = true;
  12. ["Left Leg"] = true;
  13. ["Left Arm"] = true;
  14. }
  15. Iterate(LocalPlayer.Character, function(v)
  16. if v:IsA("BasePart") then
  17. local attachment = Instance.new("Attachment")
  18. attachment.Parent = v
  19. attachment.Name = (v.Name .. "[Attachment]")
  20. if limbs[v.Name] then
  21. attachment.Position = Vector3.new(0, v.Size.Y/2, 0)
  22. elseif v.Name == "Head" then
  23. attachment.Position = Vector3.new(0, -v.Size.Y/2, 0)
  24. attachment.Rotation = Vector3.new(0, 0, -90)
  25. end
  26. end
  27. end)
  28. local leftLegAttachment = Instance.new("Attachment")
  29. leftLegAttachment.Position = Vector3.new(-.5, -1, 0)
  30. leftLegAttachment.Rotation = Vector3.new(0, -90, 0)
  31. local rightLegAttachment = Instance.new("Attachment")
  32. rightLegAttachment.Position = Vector3.new(.5, -1, 0)
  33. rightLegAttachment.Rotation = Vector3.new(0, -90, 0)
  34. rightLegAttachment.Parent, leftLegAttachment.Parent = LocalPlayer.Character.Torso, LocalPlayer.Character.Torso
  35. jointAttachments = {
  36. ['Head'] = {
  37. ['Attachment0'] = LocalPlayer.Character.Torso['NeckAttachment'];
  38. ['Attachment1'] = LocalPlayer.Character.Head['Head[Attachment]'];
  39. };
  40. ['Left Arm'] = {
  41. ['Attachment0'] = LocalPlayer.Character.Torso['LeftCollarAttachment'];
  42. ['Attachment1'] = LocalPlayer.Character['Left Arm']['Left Arm[Attachment]'];
  43. };
  44. ['Right Arm'] = {
  45. ['Attachment0'] = LocalPlayer.Character.Torso['RightCollarAttachment'];
  46. ['Attachment1'] = LocalPlayer.Character['Right Arm']['Right Arm[Attachment]'];
  47. };
  48. ['Left Leg'] = {
  49. ['Attachment0'] = leftLegAttachment;
  50. ['Attachment1'] = LocalPlayer.Character['Left Leg']['Left Leg[Attachment]'];
  51. };
  52. ['Right Leg'] = {
  53. ['Attachment0'] = rightLegAttachment;
  54. ['Attachment1'] = LocalPlayer.Character['Right Leg']['Right Leg[Attachment]'];
  55. };
  56. }
  57. LocalPlayer.Character.Humanoid.PlatformStand = true
  58. Iterate(LocalPlayer.Character, function(v)
  59. if v:IsA("BasePart") then
  60. if jointAttachments[v.Name] then
  61. local ballSocketJoint = Instance.new("BallSocketConstraint")
  62. ballSocketJoint.Parent = v
  63. ballSocketJoint.Radius = 0.15
  64. ballSocketJoint.Attachment0, ballSocketJoint.Attachment1 = jointAttachments[v.Name]['Attachment0'], jointAttachments[v.Name]['Attachment1']
  65. end
  66. end
  67. end)
  68. Iterate(LocalPlayer.Character.Torso, function(v)
  69. if v:IsA("Motor") then
  70. v:Remove()
  71. wait(0.01)
  72. local hum = LocalPlayer.Character:FindFirstChild("Humanoid")
  73.  
  74. hum.PlatformStand = true
  75. hum.MaxHealth = -99e99
  76. hum.Health = -9e9
  77. wait(0.02)
  78. hum.Name = "ded"
  79. LocalPlayer.Character.Torso.Material = Enum.Material.CrackedLava
  80. print"still works but died" -- idk but it will works
  81. end
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement