SlappyDappyCrappy

ragdoll r15

Oct 17th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.93 KB | None | 0 0
  1. local function ded()
  2.    
  3.     local removeHRP = false
  4.  
  5. local leftfoot = script.Parent:FindFirstChild("LeftFoot")
  6. local lefthand = script.Parent:FindFirstChild("LeftHand")
  7. local leftlowerarm = script.Parent:FindFirstChild("LeftLowerArm")
  8. local leftlowerleg = script.Parent:FindFirstChild("LeftLowerLeg")
  9. local leftupperarm = script.Parent:FindFirstChild("LeftUpperArm")
  10. local leftupperleg = script.Parent:FindFirstChild("LeftUpperLeg")
  11. local lowertorso = script.Parent:FindFirstChild("LowerTorso")
  12. local rightfoot = script.Parent:FindFirstChild("RightFoot")
  13. local righthand = script.Parent:FindFirstChild("RightHand")
  14. local rightlowerarm = script.Parent:FindFirstChild("RightLowerArm")
  15. local rightlowerleg = script.Parent:FindFirstChild("RightLowerLeg")
  16. local rightupperarm = script.Parent:FindFirstChild("RightUpperArm")
  17. local rightupperleg = script.Parent:FindFirstChild("RightUpperLeg")
  18. local uppertorso = script.Parent:FindFirstChild("UpperTorso")
  19. local head = script.Parent:FindFirstChild("Head")
  20. local humanoidrootpart = script.Parent:FindFirstChild("HumanoidRootPart")
  21.  
  22. -- Remove HumanoidRootPart --
  23.  
  24. if removeHRP == true then
  25.     humanoidrootpart:Destroy()
  26. end
  27.  
  28. -- Attachments --
  29.     local LFA = Instance.new("Attachment")
  30.     LFA.Name = "LFA"
  31.     LFA.Parent = leftfoot
  32.     LFA.Position = Vector3.new(0.046, 0.15, -0.08)
  33.     LFA.Rotation = Vector3.new(0, 0, 90)
  34.     LFA.Axis = Vector3.new(0, 1, 0)
  35.     LFA.SecondaryAxis = Vector3.new(-1, 0, 0)
  36.    
  37.     local LHA = Instance.new("Attachment")
  38.     LHA.Name = "LHA"
  39.     LHA.Parent = lefthand
  40.     LHA.Position = Vector3.new(-0.003, 0.1, 0.026)
  41.     LHA.Rotation = Vector3.new(0, 0, 90)
  42.     LHA.Axis = Vector3.new(0, 1, 0)
  43.     LHA.SecondaryAxis = Vector3.new(-1, 0, 0)
  44.    
  45.     local LLAA = Instance.new("Attachment")
  46.     LLAA.Name = "LLAA"
  47.     LLAA.Parent = leftlowerarm
  48.     LLAA.Position = Vector3.new(0.019, -0.7, -0.014)
  49.     LLAA.Rotation = Vector3.new(0, 0, -90)
  50.     LLAA.Axis = Vector3.new(0, -1, 0)
  51.     LLAA.SecondaryAxis = Vector3.new(1, 0, 0)
  52.    
  53.     local LLAA1 = Instance.new("Attachment")
  54.     LLAA1.Name = "LLAA1"
  55.     LLAA1.Parent = leftlowerarm
  56.     LLAA1.Position = Vector3.new(-0.006, 0.162, 0.055)
  57.     LLAA1.Rotation = Vector3.new(-180, 0, -180)
  58.     LLAA1.Axis = Vector3.new(-1, 0, 0)
  59.     LLAA1.SecondaryAxis = Vector3.new(0, 1, 0)
  60.    
  61.     local LLLA = Instance.new("Attachment")
  62.     LLLA.Name = "LLLA"
  63.     LLLA.Parent = leftlowerleg
  64.     LLLA.Position = Vector3.new(0.046, -0.7, -0.1)
  65.     LLLA.Rotation = Vector3.new(0, 0, 90)
  66.     LLLA.Axis = Vector3.new(0, 1, 0)
  67.     LLLA.SecondaryAxis = Vector3.new(-1, 0, 0)
  68.    
  69.     local LLLA1 = Instance.new("Attachment")
  70.     LLLA1.Name = "LLLA1"
  71.     LLLA1.Parent = leftlowerleg
  72.     LLLA1.Position = Vector3.new(0.005, 0.214, 0.024)
  73.     LLLA1.Rotation = Vector3.new(-180, 0, -180)
  74.     LLLA1.Axis = Vector3.new(-1, 0, 0)
  75.     LLLA1.SecondaryAxis = Vector3.new(0, 1, 0)
  76.    
  77.     local LUAA = Instance.new("Attachment")
  78.     LUAA.Name = "LUAA"
  79.     LUAA.Parent = leftupperarm
  80.     LUAA.Position = Vector3.new(0.042, -0.27, 0.068)
  81.     LUAA.Rotation = Vector3.new(-180, 0, -180)
  82.     LUAA.Axis = Vector3.new(-1, 0, 0)
  83.     LUAA.SecondaryAxis = Vector3.new(0, 1, 0)
  84.    
  85.     local LUAA1 = Instance.new("Attachment")
  86.     LUAA1.Name = "LUAA1"
  87.     LUAA1.Parent = leftupperarm
  88.     LUAA1.Position = Vector3.new(0.5, 0.525, -0.064)
  89.     LUAA1.Rotation = Vector3.new(-180, 0, -180)
  90.     LUAA1.Axis = Vector3.new(-1, 0, 0)
  91.     LUAA1.SecondaryAxis = Vector3.new(0, 1, 0)
  92.    
  93.     local LULA = Instance.new("Attachment")
  94.     LULA.Name = "LULA"
  95.     LULA.Parent = leftupperleg
  96.     LULA.Position = Vector3.new(0.01, -0.26, 0.039)
  97.     LULA.Rotation = Vector3.new(-180, 0, -180)
  98.     LULA.Axis = Vector3.new(-1, 0, 0)
  99.     LULA.SecondaryAxis = Vector3.new(0, 1, 0)
  100.    
  101.     local LULA1 = Instance.new("Attachment")
  102.     LULA1.Name = "LULA1"
  103.     LULA1.Parent = leftupperleg
  104.     LULA1.Position = Vector3.new(0.002, 0.55, -0.016)
  105.     LULA1.Rotation = Vector3.new(0, 0, 90)
  106.     LULA1.Axis = Vector3.new(0, 1, 0)
  107.     LULA1.SecondaryAxis = Vector3.new(-1, 0, 0)
  108.    
  109.     local LTA = Instance.new("Attachment")
  110.     LTA.Name = "LTA"
  111.     LTA.Parent = lowertorso
  112.     LTA.Position = Vector3.new(0.512, -0.2, -0.027)
  113.     LTA.Rotation = Vector3.new(0, 0, -90)
  114.     LTA.Axis = Vector3.new(0, -1, 0)
  115.     LTA.SecondaryAxis = Vector3.new(1, 0, 0)
  116.    
  117.     local LTA1 = Instance.new("Attachment")
  118.     LTA1.Name = "LTA1"
  119.     LTA1.Parent = lowertorso
  120.     LTA1.Position = Vector3.new(-0.48, -0.2, -0.002)
  121.     LTA1.Rotation = Vector3.new(0, 0, -90)
  122.     LTA1.Axis = Vector3.new(0, -1, 0)
  123.     LTA1.SecondaryAxis = Vector3.new(1, 0, 0)
  124.    
  125.     local LTA2 = Instance.new("Attachment")
  126.     LTA2.Name = "LTA2"
  127.     LTA2.Parent = lowertorso
  128.     LTA2.Position = Vector3.new(-0.011, 0.2, -0.071)
  129.     LTA2.Rotation = Vector3.new(0, 0, 90)
  130.     LTA2.Axis = Vector3.new(0, 1, 0)
  131.     LTA2.SecondaryAxis = Vector3.new(-1, 0, 0)
  132.    
  133.     local RFA = Instance.new("Attachment")
  134.     RFA.Name = "RFA"
  135.     RFA.Parent = rightfoot
  136.     RFA.Position = Vector3.new(-0.022, 0.15, -0.052)
  137.     RFA.Rotation = Vector3.new(0, 0, 90)
  138.     RFA.Axis = Vector3.new(0, 1, 0)
  139.     RFA.SecondaryAxis = Vector3.new(-1, 0, 0)
  140.    
  141.     local RHA = Instance.new("Attachment")
  142.     RHA.Name = "RHA"
  143.     RHA.Parent = righthand
  144.     RHA.Position = Vector3.new(-0.004, 0.05, -0.015)
  145.     RHA.Rotation = Vector3.new(0, 0, 90)
  146.     RHA.Axis = Vector3.new(0, 1, 0)
  147.     RHA.SecondaryAxis = Vector3.new(-1, 0, 0)
  148.    
  149.     local RLAA = Instance.new("Attachment")
  150.     RLAA.Name = "RLAA"
  151.     RLAA.Parent = rightlowerarm
  152.     RLAA.Position = Vector3.new(-0.012, -0.686, 0.027)
  153.     RLAA.Rotation = Vector3.new(0, 0, -90)
  154.     RLAA.Axis = Vector3.new(0, -1, 0)
  155.     RLAA.SecondaryAxis = Vector3.new(1, 0, 0)
  156.    
  157.     local RLAA1 = Instance.new("Attachment")
  158.     RLAA1.Name = "RLAA1"
  159.     RLAA1.Parent = rightlowerarm
  160.     RLAA1.Position = Vector3.new(0.02, 0.174, 0.04)
  161.     RLAA1.Rotation = Vector3.new(-180, 0, -180)
  162.     RLAA1.Axis = Vector3.new(-1, 0, 0)
  163.     RLAA1.SecondaryAxis = Vector3.new(0, 1, 0)
  164.    
  165.     local RLLA = Instance.new("Attachment")
  166.     RLLA.Name = "RLLA"
  167.     RLLA.Parent = rightlowerleg
  168.     RLLA.Position = Vector3.new(-0.005, 0.25, -0.021)
  169.     RLLA.Rotation = Vector3.new(-90, 0, -180)
  170.     RLLA.Axis = Vector3.new(-1, 0, 0)
  171.     RLLA.SecondaryAxis = Vector3.new(0, 0, 1)
  172.    
  173.     local RLLA1 = Instance.new("Attachment")
  174.     RLLA1.Name = "RLLA1"
  175.     RLLA1.Parent = rightlowerleg
  176.     RLLA1.Position = Vector3.new(-0.018, -0.665, -0.06)
  177.     RLLA1.Rotation = Vector3.new(0, 0, 90)
  178.     RLLA1.Axis = Vector3.new(0, 1, 0)
  179.     RLLA1.SecondaryAxis = Vector3.new(-1, 0, 0)
  180.    
  181.     local RUAA = Instance.new("Attachment")
  182.     RUAA.Name = "RUAA"
  183.     RUAA.Parent = rightupperarm
  184.     RUAA.Position = Vector3.new(0.074, -0.257, 0.037)
  185.     RUAA.Rotation = Vector3.new(-180, 0, -180)
  186.     RUAA.Axis = Vector3.new(-1, 0, 0)
  187.     RUAA.SecondaryAxis = Vector3.new(0, 1, 0)
  188.    
  189.     local RUAA1 = Instance.new("Attachment")
  190.     RUAA1.Name = "RUAA1"
  191.     RUAA1.Parent = rightupperarm
  192.     RUAA1.Position = Vector3.new(-0.5, 0.472, -0.055)
  193.     RUAA1.Rotation = Vector3.new(-180, 0, -180)
  194.     RUAA1.Axis = Vector3.new(-1, 0, 0)
  195.     RUAA1.SecondaryAxis = Vector3.new(0, 1, 0)
  196.    
  197.     local RULA = Instance.new("Attachment")
  198.     RULA.Name = "RULA"
  199.     RULA.Parent = rightupperleg
  200.     RULA.Position = Vector3.new(-0.006, 0.55, -0.046)
  201.     RULA.Rotation = Vector3.new(0, 0, 90)
  202.     RULA.Axis = Vector3.new(0, 1, 0)
  203.     RULA.SecondaryAxis = Vector3.new(-1, 0, 0)
  204.    
  205.     local RULA1 = Instance.new("Attachment")
  206.     RULA1.Name = "RULA1"
  207.     RULA1.Parent = rightupperleg
  208.     RULA1.Position = Vector3.new(-0.028, -0.25, -0.077)
  209.     RULA1.Rotation = Vector3.new(90, 0, -180)
  210.     RULA1.Axis = Vector3.new(-1, 0, 0)
  211.     RULA1.SecondaryAxis = Vector3.new(0, 0, -1)
  212.    
  213.     local UTA = Instance.new("Attachment")
  214.     UTA.Name = "UTA"
  215.     UTA.Parent = uppertorso
  216.     UTA.Position = Vector3.new(-0.006, 0.8, -0.024)
  217.     UTA.Rotation = Vector3.new(0, 0, 90)
  218.     UTA.Axis = Vector3.new(0, 1, 0)
  219.     UTA.SecondaryAxis = Vector3.new(-1, 0, 0)
  220.    
  221.     local UTA1 = Instance.new("Attachment")
  222.     UTA1.Name = "UTA1"
  223.     UTA1.Parent = uppertorso
  224.     UTA1.Position = Vector3.new(0.018, -0.8, -0.004)
  225.     UTA1.Rotation = Vector3.new(0, 0, -90)
  226.     UTA1.Axis = Vector3.new(0, -1, 0)
  227.     UTA1.SecondaryAxis = Vector3.new(1, 0, 0)
  228.    
  229.     local UTA2 = Instance.new("Attachment")
  230.     UTA2.Name = "UTA2"
  231.     UTA2.Parent = uppertorso
  232.     UTA2.Position = Vector3.new(-1, 0.588, -0.018)
  233.     UTA2.Rotation = Vector3.new(-180, 0, -180)
  234.     UTA2.Axis = Vector3.new(-1, 0, 0)
  235.     UTA2.SecondaryAxis = Vector3.new(0, 1, 0)
  236.    
  237.     local UTA3 = Instance.new("Attachment")
  238.     UTA3.Name = "UTA3"
  239.     UTA3.Parent = uppertorso
  240.     UTA3.Position = Vector3.new(1, 0.574, -0)
  241.     UTA3.Rotation = Vector3.new(-180, 0, -180)
  242.     UTA3.Axis = Vector3.new(-1, 0, 0)
  243.     UTA3.SecondaryAxis = Vector3.new(0, 1, 0)
  244.    
  245.     local HA = Instance.new("Attachment")
  246.     HA.Name = "HA"
  247.     HA.Parent = head
  248.     HA.Position = Vector3.new(0, -0.5, 0)
  249.     HA.Rotation = Vector3.new(0, 0, -90)
  250.     HA.Axis = Vector3.new(0, -1, 0)
  251.     HA.SecondaryAxis = Vector3.new(1, 0, 0)
  252.    
  253. -- Constraints --
  254.  
  255.         local LFA_LLLA_H = Instance.new("HingeConstraint")
  256.         LFA_LLLA_H.Name = "LFA-LLLA_H"
  257.         LFA_LLLA_H.Parent = leftfoot
  258.         LFA_LLLA_H.Enabled = true
  259.         LFA_LLLA_H.Attachment0 = LFA
  260.         LFA_LLLA_H.Attachment1 = LLLA
  261.        
  262.         local LLAA_LHA_H = Instance.new("HingeConstraint")
  263.         LLAA_LHA_H.Name = "LLAA-LHA_H"
  264.         LLAA_LHA_H.Parent = leftlowerarm
  265.         LLAA_LHA_H.Enabled = true
  266.         LLAA_LHA_H.Attachment0 = LLAA
  267.         LLAA_LHA_H.Attachment1 = LHA
  268.        
  269.         local LLAA1_LUAA_H = Instance.new("HingeConstraint")
  270.         LLAA1_LUAA_H.Name = "LLAA1-LUAA_H"
  271.         LLAA1_LUAA_H.Parent = leftlowerarm
  272.         LLAA1_LUAA_H.Enabled = true
  273.         LLAA1_LUAA_H.Attachment0 = LLAA1
  274.         LLAA1_LUAA_H.Attachment1 = LUAA
  275.        
  276.         local LULA_LLLA1_H = Instance.new("HingeConstraint")
  277.         LULA_LLLA1_H.Name = "LULA-LLLA1_H"
  278.         LULA_LLLA1_H.Parent = leftupperleg
  279.         LULA_LLLA1_H.Enabled = true
  280.         LULA_LLLA1_H.Attachment0 = LULA
  281.         LULA_LLLA1_H.Attachment1 = LLLA1
  282.        
  283.         local LULA1_LTA1_B = Instance.new("BallSocketConstraint")
  284.         LULA1_LTA1_B.Name = "LULA1-LTA1_B"
  285.         LULA1_LTA1_B.Parent = leftupperleg
  286.         LULA1_LTA1_B.Enabled = true
  287.         LULA1_LTA1_B.Attachment0 = LULA1
  288.         LULA1_LTA1_B.Attachment1 = LTA1
  289.        
  290.         local RFA_RLLA1_H = Instance.new("HingeConstraint")
  291.         RFA_RLLA1_H.Name = "RFA-RLLA1_H"
  292.         RFA_RLLA1_H.Parent = leftupperleg
  293.         RFA_RLLA1_H.Enabled = true
  294.         RFA_RLLA1_H.Attachment0 = RFA
  295.         RFA_RLLA1_H.Attachment1 = RLLA1
  296.        
  297.         local RHA_RLAA_H = Instance.new("HingeConstraint")
  298.         RHA_RLAA_H.Name = "RHA-RLAA_H"
  299.         RHA_RLAA_H.Parent = righthand
  300.         RHA_RLAA_H.Enabled = true
  301.         RHA_RLAA_H.Attachment0 = RHA
  302.         RHA_RLAA_H.Attachment1 = RLAA
  303.        
  304.         local RLLA_RULA1_H = Instance.new("HingeConstraint")
  305.         RLLA_RULA1_H.Name = "RLLA-RULA1_H"
  306.         RLLA_RULA1_H.Parent = rightlowerleg
  307.         RLLA_RULA1_H.Enabled = true
  308.         RLLA_RULA1_H.Attachment0 = RLLA
  309.         RLLA_RULA1_H.Attachment1 = RULA1
  310.        
  311.         local RLLA_RULA1_H = Instance.new("HingeConstraint")
  312.         RLLA_RULA1_H.Name = "RLLA-RULA1_H"
  313.         RLLA_RULA1_H.Parent = rightlowerleg
  314.         RLLA_RULA1_H.Enabled = true
  315.         RLLA_RULA1_H.Attachment0 = RLLA
  316.         RLLA_RULA1_H.Attachment1 = RULA1
  317.        
  318.         local RUAA_RLAA1_H = Instance.new("HingeConstraint")
  319.         RUAA_RLAA1_H.Name = "RUAA-RLAA1_H"
  320.         RUAA_RLAA1_H.Parent = rightupperarm
  321.         RUAA_RLAA1_H.Enabled = true
  322.         RUAA_RLAA1_H.Attachment0 = RUAA
  323.         RUAA_RLAA1_H.Attachment1 = RLAA1
  324.        
  325.         local RUAA1_UTA3_B = Instance.new("BallSocketConstraint")
  326.         RUAA1_UTA3_B.Name = "RUAA1-UTA3_B"
  327.         RUAA1_UTA3_B.Parent = rightupperarm
  328.         RUAA1_UTA3_B.Enabled = true
  329.         RUAA1_UTA3_B.Attachment0 = RUAA1
  330.         RUAA1_UTA3_B.Attachment1 = UTA3
  331.        
  332.         local RULA_LTA_B = Instance.new("BallSocketConstraint")
  333.         RULA_LTA_B.Name = "RULA-LTA_B"
  334.         RULA_LTA_B.Parent = rightupperleg
  335.         RULA_LTA_B.Enabled = true
  336.         RULA_LTA_B.Attachment0 = RULA
  337.         RULA_LTA_B.Attachment1 = LTA
  338.        
  339.         local UTA_HA_B = Instance.new("BallSocketConstraint")
  340.         UTA_HA_B.Name = "UTA-HA_B"
  341.         UTA_HA_B.Parent = uppertorso
  342.         UTA_HA_B.Enabled = true
  343.         UTA_HA_B.Attachment0 = UTA
  344.         UTA_HA_B.Attachment1 = HA
  345.        
  346.         local UTA1_LTA2_B = Instance.new("BallSocketConstraint")
  347.         UTA1_LTA2_B.Name = "UTA1-LTA2_B"
  348.         UTA1_LTA2_B.Parent = uppertorso
  349.         UTA1_LTA2_B.Enabled = true
  350.         UTA1_LTA2_B.Attachment0 = UTA1
  351.         UTA1_LTA2_B.Attachment1 = LTA2
  352.        
  353.         local UTA2_LUAA1_B = Instance.new("BallSocketConstraint")
  354.         UTA2_LUAA1_B.Name = "UTA2-LUAA1_B"
  355.         UTA2_LUAA1_B.Parent = uppertorso
  356.         UTA2_LUAA1_B.Enabled = true
  357.         UTA2_LUAA1_B.Attachment0 = UTA2
  358.         UTA2_LUAA1_B.Attachment1 = LUAA1
  359.            
  360. end
  361.  
  362. Enum.KeyCode.R:connect(ded)
Add Comment
Please, Sign In to add comment