SansjustSans2

roblox ragdoll realism script REALISTIC EDITON

Aug 4th, 2020 (edited)
325
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- i converted a living ragdoll model to player lol
  2. -- for some reason this executes on everyone when using serverside and void script builder
  3. -- editon description: ever had too less realisticness and too much fanasty? well this is for you!
  4. -- the editon contains: BLOOD, RAGDOLLS THAT NEVER DISSAPEAR, NO GUIS, AND NO DAMAGE INDICATOR!
  5. -- GET THE REALISTIC VERSION FOR FREE ONLY 18 PER ORDER
  6. -- Yep i edited this BUT ONLY THE SETTINGS
  7. -- you can edit the settings
  8. -- i gotta go this talk is way too long
  9. script.Parent = nil
  10. script.Name = "RobloxAdvanced"
  11. if _G.RobloxAdvanced ~= nil then
  12.  pcall(function() _G.RobloxAdvanced.Disable() end)
  13.  wait(0.5)
  14.  _G.RobloxAdvanced = nil
  15.  wait(0.5)
  16. end
  17. _G.RobloxAdvanced = {}
  18. _G.RobloxAdvanced.Instance = script
  19. _G.RobloxAdvanced.Connections = {}
  20. _G.RobloxAdvanced.RagdollOnHit = true
  21. _G.RobloxAdvanced.DamageOnHit = true
  22. _G.RobloxAdvanced.CriticalHitsEnabled = true
  23. _G.RobloxAdvanced.RagdollOnDeath = true
  24. _G.RobloxAdvanced.KeepCorpses = true
  25. _G.RobloxAdvanced.KeepCorpsesTime = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  26. _G.RobloxAdvanced.ShowDamage = false
  27. _G.RobloxAdvanced.BloodEnabled = true
  28. _G.RobloxAdvanced.BloodGuiEnabled = true
  29. _G.RobloxAdvanced.DeathGuiEnabled = false
  30. _G.RobloxAdvanced.SpawnGuiEnabled = false
  31. _G.RobloxAdvanced.HUDEnabled = false
  32. _G.RobloxAdvanced.HUDTimeReset = function() _G.RobloxAdvanced.HUDTimeOffset = tick() end
  33. _G.RobloxAdvanced.HUDTimeReset()
  34. _G.RobloxAdvanced.HUDRemove = function()
  35.  for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  36.   pcall(function() while true do PlayerList.PlayerGui.RobloxAdvancedHUD:Remove() end end)
  37.  end
  38. end
  39. _G.RobloxAdvanced.HUDShow = function()
  40.  _G.RobloxAdvanced.HUDRemove()
  41.  for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  42.   _G.RobloxAdvanced.HUD(PlayerList)
  43.  end
  44. end
  45. _G.RobloxAdvanced.Disable = function()
  46.  _G.RobloxAdvanced.RagdollOnHit = false
  47.  _G.RobloxAdvanced.DamageOnHit = false
  48.  _G.RobloxAdvanced.CriticalHitsEnabled = false
  49.  _G.RobloxAdvanced.RagdollOnDeath = false
  50.  _G.RobloxAdvanced.KeepCorpses = false
  51.  _G.RobloxAdvanced.ShowDamage = false
  52.  _G.RobloxAdvanced.BloodEnabled = false
  53.  _G.RobloxAdvanced.BloodGuiEnabled = false
  54.  _G.RobloxAdvanced.DeathGuiEnabled = false
  55.  _G.RobloxAdvanced.SpawnGuiEnabled = false
  56.  _G.RobloxAdvanced.HUDEnabled = false
  57.  _G.RobloxAdvanced.HUDRemove()
  58.  pcall(function() _G.RobloxAdvanced.Instance.Disabled = true end)
  59.  for _, Connection in pairs(_G.RobloxAdvanced.Connections) do
  60.   pcall(function() Connection:disconnect() end)
  61.  end
  62. end
  63. _G.RobloxAdvanced.MakeBlood = function()
  64.  local Size = math.random(10, 75) / 100
  65.  local Blood = Instance.new("Part")
  66.  Blood.Name = "Blood"
  67.  Blood.BrickColor = BrickColor.new("Bright red")
  68.  Blood.TopSurface = 0
  69.  Blood.BottomSurface = 0
  70.  Blood.FormFactor = "Custom"
  71.  Blood.Size = Vector3.new(Size, Size, Size)
  72.  Blood.CanCollide = false
  73.  Instance.new("SpecialMesh", Blood).MeshType = "Sphere"
  74.  local HasTouched = true
  75.  coroutine.wrap(function()
  76.   wait(0.09)
  77.   HasTouched = false
  78.  end)()
  79.  table.insert(_G.RobloxAdvanced.Connections, Blood.Touched:connect(function(Hit)
  80.   if Hit.Name ~= "Blood" and Hit.Name ~= "Blood Pool" then
  81.    if Hit:GetMass() < 0 and math.random(1, 5) == 1 then
  82.     Hit.BrickColor = BrickColor.new((function()
  83.      local Color = math.random(1, 2)
  84.      if Color == 1 then
  85.       return "Bright red"
  86.      elseif Color == 2 then
  87.       return "Crimson"
  88.      end
  89.     end)())
  90.    end
  91.   end
  92.   if Blood.Name == "Blood" and Hit.Name == "Blood Pool" then
  93.    Blood:Remove()
  94.   elseif Blood.Name == "Blood Pool" and Hit.Name == "Blood" then
  95.    if Blood.Size.x > math.random(5, 20) or Blood.Size.z > math.random(5, 20) then return end
  96.    local _, C0, C1, Part1 = pcall(function() return Blood.Weld.C0, Blood.Weld.C1, Blood.Weld.Part1 end)
  97.    Blood.Size = Blood.Size + Vector3.new(Hit.Size.x / 5, 0, Hit.Size.z / 5)
  98.    Blood.CFrame = Part1.CFrame * C0 * C1
  99.    if C0 ~= nil and C1 ~= nil and Part1 ~= nil then
  100.     local Weld = Instance.new("Weld", Blood)
  101.     Weld.Part0 = Blood
  102.     Weld.Part1 = Part1
  103.     Weld.C0 = C0
  104.     Weld.C1 = C1
  105.    end
  106.   elseif HasTouched == false and Hit.Name ~= "Blood" then
  107.    HasTouched = true
  108.    local NewHit, Position = Workspace:FindPartOnRay(Ray.new(Blood.Position + Vector3.new(0, 1, 0), Vector3.new(0, -3, 0)), Blood)
  109.    if NewHit ~= nil and NewHit.Anchored == true then
  110.     Blood.Size = Vector3.new(Size * 2, 0.3, Size * 2)
  111.     Blood.Name = "Blood Pool"
  112.     Blood.CFrame = CFrame.new(Position)
  113.     local Weld = Instance.new("Weld", Blood)
  114.     Weld.Part0 = Blood
  115.     Weld.Part1 = NewHit
  116.     Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Position)
  117.     Weld.C1 = NewHit.CFrame:inverse() * CFrame.new(Position)
  118.    else
  119.     local Weld = Instance.new("Weld", Blood)
  120.     Weld.Part0 = Blood
  121.     Weld.Part1 = Hit
  122.     Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Blood.Position)
  123.     Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Blood.Position)
  124.    end
  125.   end
  126.  end))
  127.  coroutine.wrap(function()
  128.   local Size = Blood.Size
  129.   local Step = math.random(40, 100) / 1000
  130.   while Blood.Transparency < 1 do
  131.    if Blood.Name == "Blood Pool" and Size ~= Blood.Size then
  132.     Step = 0.003
  133.     Size = Blood.Size
  134.     Blood.Transparency = 0
  135.    end
  136.    Blood.Transparency = Blood.Transparency + Step
  137.    wait()
  138.   end
  139.   Blood:Remove()
  140.  end)()
  141.  return Blood
  142. end
  143. _G.RobloxAdvanced.HUD = function(Player)
  144.  if _G.RobloxAdvanced.HUDEnabled == false then return end
  145.  local PlayerGui = Player:FindFirstChild("PlayerGui")
  146.  if PlayerGui == nil then return end
  147.  coroutine.wrap(function()
  148.   while _G.RobloxAdvanced.HUDEnabled == true do
  149.    pcall(function()
  150.     PlayerGui.HealthGUI:Remove()
  151.    end)
  152.    wait()
  153.   end
  154.  end)()
  155.  local Gui = Instance.new("ScreenGui")
  156.  Gui.Name = "RobloxAdvancedHUD"
  157.  local Frame = Instance.new("Frame")
  158.  Frame.Name = "Background"
  159.  Frame.Size = UDim2.new(0, 500, 0, 15)
  160.  Frame.Position = UDim2.new(0.5, (-500 / 2), 1, -15)
  161.  Frame.BackgroundTransparency = 1
  162.  Frame.BorderSizePixel = 0
  163.  Frame.Parent = Gui
  164.  local Kills = Instance.new("TextLabel")
  165.  Kills.Name = "Kills"
  166.  Kills.Size = UDim2.new(1 / 5, 0, 1, 0)
  167.  Kills.Position = UDim2.new(0, 0, 0, 0)
  168.  Kills.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  169.  Kills.BorderSizePixel = 1
  170.  Kills.BorderColor3 = Color3.new(1, 1, 1)
  171.  Kills.TextColor3 = Color3.new(1, 1, 1)
  172.  Kills.Parent = Frame
  173.  coroutine.wrap(function()
  174.   while true do
  175.    Kills.Text = "Kills: " ..(Player:FindFirstChild("RobloxAdvancedKills") ~= nil and Player.RobloxAdvancedKills.Value or 0)
  176.    wait(0.5)
  177.   end
  178.  end)()
  179.  Frame.Parent = Gui
  180.  local Killstreak = Instance.new("TextLabel")
  181.  Killstreak.Name = "Killstreak"
  182.  Killstreak.Size = UDim2.new(1 / 5, 0, 1, 0)
  183.  Killstreak.Position = UDim2.new(1 / 5, 0, 0, 0)
  184.  Killstreak.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  185.  Killstreak.BorderSizePixel = 1
  186.  Killstreak.BorderColor3 = Color3.new(1, 1, 1)
  187.  Killstreak.TextColor3 = Color3.new(1, 1, 1)
  188.  Killstreak.Parent = Frame
  189.  coroutine.wrap(function()
  190.   while true do
  191.    Killstreak.Text = "Streak: " ..(Player:FindFirstChild("RobloxAdvancedKillstreak") ~= nil and Player.RobloxAdvancedKillstreak.Value or 0)
  192.    wait(0.5)
  193.   end
  194.  end)()
  195.  local Deaths = Instance.new("TextLabel")
  196.  Deaths.Name = "Deaths"
  197.  Deaths.Size = UDim2.new(1 / 5, 0, 1, 0)
  198.  Deaths.Position = UDim2.new(1 / 5 * 2, 0, 0, 0)
  199.  Deaths.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  200.  Deaths.BorderSizePixel = 1
  201.  Deaths.BorderColor3 = Color3.new(1, 1, 1)
  202.  Deaths.TextColor3 = Color3.new(1, 1, 1)
  203.  Deaths.Parent = Frame
  204.  coroutine.wrap(function()
  205.   while true do
  206.    Deaths.Text = "Deaths: " ..(Player:FindFirstChild("RobloxAdvancedDeaths") ~= nil and Player.RobloxAdvancedDeaths.Value or 0)
  207.    wait(0.5)
  208.   end
  209.  end)()
  210.  local Health = Instance.new("TextLabel")
  211.  Health.Name = "Health"
  212.  Health.Size = UDim2.new(1 / 5, 0, 1, 0)
  213.  Health.Position = UDim2.new(1 / 5 * 3, 0, 0, 0)
  214.  Health.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  215.  Health.BorderSizePixel = 1
  216.  Health.BorderColor3 = Color3.new(1, 1, 1)
  217.  Health.TextColor3 = Color3.new(1, 1, 1)
  218.  Health.Parent = Frame
  219.  coroutine.wrap(function()
  220.   for i = 0, math.huge, 0.5 do
  221.    if pcall(function() local _ = Player.Character.Humanoid end) == true then
  222.     if Player.Character.Humanoid.Health == math.huge or Player.Character.Humanoid.MaxHealth == math.huge then
  223.      Health.Text = "Invincible"
  224.      Health.BackgroundColor3 = Color3.new(0, 0, 0.5)
  225.     else
  226.      Health.Text = "Health: " ..math.floor(Player.Character.Humanoid.Health).. "/" ..math.floor(Player.Character.Humanoid.MaxHealth)
  227.      Health.BackgroundColor3 = Color3.new((1 - (Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth)) * 0.9, (Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth) * 0.5, 0)
  228.     end
  229.     if Player.Character:FindFirstChild("ForceField") ~= nil then
  230.      Health.BackgroundColor3 = Color3.new(((math.sin(i) + 1) / 2), 0, 1 - ((math.sin(i) + 1) / 2))
  231.     end
  232.    else
  233.     Health.Text = "Health: Nil"
  234.     Health.BackgroundColor3 = Color3.new(0, 0, 0)
  235.    end
  236.    wait(0.05)
  237.   end
  238.  end)()
  239.  local Time = Instance.new("TextLabel")
  240.  Time.Name = "Time"
  241.  Time.Size = UDim2.new(1 / 5, 0, 1, 0)
  242.  Time.Position = UDim2.new(1 / 5 * 4, 0, 0, 0)
  243.  Time.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  244.  Time.BorderSizePixel = 1
  245.  Time.BorderColor3 = Color3.new(1, 1, 1)
  246.  Time.TextColor3 = Color3.new(1, 1, 1)
  247.  Time.Parent = Frame
  248.  coroutine.wrap(function()
  249.   while true do
  250.    local Total = tick() - _G.RobloxAdvanced.HUDTimeOffset
  251.    local Minutes = math.floor(Total / 60)
  252.    local Seconds = math.floor(Total % 60)
  253.    if string.len(Minutes) == 1 then Minutes = "0" ..Minutes end
  254.    if string.len(Seconds) == 1 then Seconds = "0" ..Seconds end
  255.    Time.Text = "Time: " ..Minutes.. ":" ..Seconds
  256.    wait(0.05)
  257.   end
  258.  end)()
  259.  Gui.Parent = PlayerGui
  260. end
  261. _G.RobloxAdvanced.HookPlayerDeath = function(Player)
  262.  table.insert(_G.RobloxAdvanced.Connections, Player.Changed:connect(function(Property)
  263.   if Property == "Character" then
  264.    if Player.Character ~= nil then
  265.     if _G.RobloxAdvanced.SpawnGuiEnabled == true then
  266.      local PlayerGui = Player:FindFirstChild("PlayerGui")
  267.      if PlayerGui == nil then return end
  268.      local Gui = Instance.new("ScreenGui")
  269.      Gui.Name = "Life"
  270.      local Frame = Instance.new("Frame")
  271.      Frame.Name = "White"
  272.      Frame.Size = UDim2.new(2, 0, 2, 0)
  273.      Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  274.      Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  275.      Frame.BackgroundTransparency = 0
  276.      Frame.Parent = Gui
  277.      Gui.Parent = PlayerGui
  278.      coroutine.wrap(function()
  279.       wait(0.1)
  280.       for i = 0, 1, 0.1 do
  281.        Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  282.        wait()
  283.       end
  284.       Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  285.       wait(0.3)
  286.       for i = 0, 1, 0.05 do
  287.        Frame.BackgroundTransparency = i
  288.        wait()
  289.       end
  290.       Gui:Remove()
  291.      end)()
  292.     end
  293.     _G.RobloxAdvanced.HUD(Player)
  294.    end
  295.   end
  296.  end))
  297.  _G.RobloxAdvanced.HUD(Player)
  298.  table.insert(_G.RobloxAdvanced.Connections, Player.Chatted:connect(function(Message)
  299.   if string.sub(Message, 0, 5) == "lego " then Message = string.sub(Message, 6) end
  300.   Message = Message:lower()
  301.   if Message == "throw me" or Message == "ragdoll" then
  302.    if Player.Character == nil then return end
  303.    if Player.Character:FindFirstChild("Humanoid") == nil then return end
  304.    if Player.Character:FindFirstChild("Torso") == nil then return end
  305.    Player.Character.Humanoid.Sit = true
  306.    _G.RobloxAdvanced.Ragdoll(true, Player.Character)
  307.    if Message == "throw me" then
  308.     Player.Character.Torso.Velocity = Player.Character.Torso.Velocity + (Player.Character.Torso.CFrame.lookVector * 150) + Vector3.new(0, 50, 0)
  309.    end
  310.   end
  311.  end))
  312. end
  313. _G.RobloxAdvanced.HookModelDeath = function(Character)
  314.  wait()
  315.  if Character == nil then return end
  316.  if Character:FindFirstChild("Humanoid") == nil then return end
  317.  local RagdollStatus = false
  318.  local ConnectTouched = function(Part)
  319.   if Part.Parent ~= Character then return end
  320.   pcall(function()
  321.    table.insert(_G.RobloxAdvanced.Connections, Part.Touched:connect(function(Hit)
  322.     if Hit == nil then return end
  323.     if Hit.Parent == nil then return end
  324.     if Hit.Parent ~= Character and Hit.Parent.Parent ~= Character and Hit:GetMass() > 10 then
  325.      local Velocity1 = {
  326.       math.abs(Part.Velocity.x),
  327.       math.abs(Part.Velocity.y),
  328.       math.abs(Part.Velocity.z)
  329.      }
  330.      local RotVelocity1 = {
  331.       math.abs(Part.RotVelocity.x),
  332.       math.abs(Part.RotVelocity.y),
  333.       math.abs(Part.RotVelocity.z)
  334.      }
  335.      local Velocity2 = {
  336.       math.abs(Hit.Velocity.x),
  337.       math.abs(Hit.Velocity.y),
  338.       math.abs(Hit.Velocity.z)
  339.      }
  340.      local RotVelocity2 = {
  341.       math.abs(Hit.RotVelocity.x),
  342.       math.abs(Hit.RotVelocity.y),
  343.       math.abs(Hit.RotVelocity.z)
  344.      }
  345.      if RagdollStatus == false and _G.RobloxAdvanced.RagdollOnHit == true then
  346.       for i = 1, 3 do
  347.        local Total = math.abs(Velocity1[i] - Velocity2[i])
  348.        if Total > math.random(95, 180) then
  349.         RagdollStatus = true
  350.        end
  351.       end
  352.       for i = 1, 3 do
  353.        local Total = math.abs(RotVelocity1[i] - RotVelocity2[i])
  354.        if Total > math.random(85, 140) then
  355.         RagdollStatus = true
  356.        end
  357.       end
  358.       if RagdollStatus == true then
  359.        _G.RobloxAdvanced.Ragdoll(true, Character)
  360.        if Character.Humanoid.PlatformStand == true or Character.Humanoid.Sit == false then
  361.         coroutine.wrap(function()
  362.          wait(1.8)
  363.          RagdollStatus = false
  364.         end)()
  365.        else
  366.         coroutine.wrap(function()
  367.          Character.Humanoid.PlatformStand = true
  368.          wait(0.5)
  369.          Character.Humanoid.PlatformStand = false
  370.          wait(1.8)
  371.          RagdollStatus = false
  372.         end)()
  373.        end
  374.       end
  375.      end
  376.      local Damage = 0
  377.      for i = 1, #Velocity1 do Damage = Damage + Velocity1[i] end
  378.      for i = 1, #RotVelocity1 do Damage = Damage + RotVelocity1[i] end
  379.      for i = 1, #Velocity2 do Damage = Damage + Velocity2[i] end
  380.      for i = 1, #RotVelocity2 do Damage = Damage + RotVelocity2[i] end
  381.      Damage = Damage / 60
  382.      if Damage >= 5 and _G.RobloxAdvanced.DamageOnHit == true then
  383.       pcall(function() Character.Humanoid:TakeDamage(math.floor(Damage)) end)
  384.      end
  385.     end
  386.    end))
  387.   end)
  388.  end
  389.  for _, Part in pairs(Character:GetChildren()) do ConnectTouched(Part) end
  390.  table.insert(_G.RobloxAdvanced.Connections, Character.ChildAdded:connect(function(Part) ConnectTouched(Part) end))
  391.  local OldHealth = Character.Humanoid.Health
  392.  table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Changed:connect(function(Property)
  393.   if Property == "Health" then
  394.    local Source = nil
  395.    for _, Part in pairs(Character:GetChildren()) do
  396.     if Part:IsA("BasePart") then
  397.      if Source == nil then
  398.       Source = Part
  399.      else
  400.       if math.abs(Part.Velocity.x) + math.abs(Part.Velocity.y) + math.abs(Part.Velocity.z) > math.abs(Source.Velocity.x) + math.abs(Source.Velocity.y) + math.abs(Source.Velocity.z) then
  401.        Source = Part
  402.       end
  403.      end
  404.     end
  405.    end
  406.    if Source == nil then return end
  407.    if math.abs(Character.Humanoid.Health - OldHealth) > math.abs((Character.Humanoid.Health + 0.01 * 1.05 * Character.Humanoid.MaxHealth) - Character.Humanoid.Health) and _G.RobloxAdvanced.ShowDamage == true then
  408.     local Model = Instance.new("Model", Workspace)
  409.     Model.Name = tostring(math.floor(Character.Humanoid.Health - OldHealth))
  410.     Model.Name = Model.Name:sub(0, 1) ~= "-" and Model.Name.. "+" or Model.Name
  411.     local Damage = Instance.new("Part", Model)
  412.     Damage.Name = "Head"
  413.     Damage.BrickColor = BrickColor.new(Model.Name:match("-") and "Bright red" or "Lime green")
  414.     if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 then
  415.      coroutine.wrap(function()
  416.       while Damage.Parent ~= nil do
  417.        Damage.BrickColor = BrickColor.new("New yeller")
  418.        wait()
  419.        Damage.BrickColor = BrickColor.new("Cyan")
  420.        wait()
  421.       end
  422.      end)()
  423.     end
  424.     Damage.TopSurface = 0
  425.     Damage.BottomSurface = 0
  426.     Damage.CanCollide = false
  427.     Damage.FormFactor = "Custom"
  428.     Damage.Size = (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 and Vector3.new(1, 1, 1) or Vector3.new(0.5, 0.5, 0.5)
  429.     Damage.CFrame = CFrame.new(Source.Position)
  430.     coroutine.wrap(function()
  431.      while Damage.Parent ~= nil do
  432.       Damage.CanCollide = false
  433.       wait()
  434.      end
  435.     end)()
  436.     local Humanoid = Instance.new("Humanoid", Model)
  437.     Humanoid.Name = "Sign"
  438.     Humanoid.MaxHealth = 0
  439.     Humanoid.Health = 0
  440.     Humanoid.WalkSpeed = 0
  441.     Humanoid.PlatformStand = true
  442.     local BodyVelocity = Instance.new("BodyVelocity", Damage)
  443.     BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  444.     BodyVelocity.velocity = Vector3.new(0, 7, 0)
  445.     coroutine.wrap(function()
  446.      wait(1)
  447.      for i = 0, 1, 0.05 do
  448.       Damage.Transparency = i
  449.       BodyVelocity.velocity = Vector3.new(0, 7 * (1 - i), 0)
  450.       wait()
  451.      end
  452.      Model:Remove()
  453.     end)()
  454.    end
  455.    if OldHealth - Character.Humanoid.Health >= 6 then
  456.     if _G.RobloxAdvanced.BloodEnabled == true then
  457.      local Max = math.ceil((OldHealth - Character.Humanoid.Health) * 2)
  458.      for i = 1, (Max > 20 and 20 or Max + 1) do
  459.       local Blood = _G.RobloxAdvanced.MakeBlood()
  460.       Blood.CFrame = Source.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  461.       Blood.Velocity = (Blood.Position - Source.Position).unit * math.random(5, 25)
  462.       Blood.Parent = Workspace
  463.      end
  464.     end
  465.     local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  466.     if Player ~= nil and _G.RobloxAdvanced.BloodGuiEnabled == true then
  467.      local PlayerGui = Player:FindFirstChild("PlayerGui")
  468.      if PlayerGui == nil then PlayerGui = Instance.new("PlayerGui", Player) end
  469.      if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  470.      local Gui = Instance.new("ScreenGui")
  471.      Gui.Name = "Pain"
  472.      local Frame = Instance.new("Frame")
  473.      Frame.Name = "Red"
  474.      Frame.Size = UDim2.new(2, 0, 2, 0)
  475.      Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  476.      Frame.BackgroundColor3 = Color3.new(0.8, 0, 0)
  477.      Frame.BackgroundTransparency = (math.abs(OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth) * 1.2
  478.      Frame.Parent = Gui
  479.      Gui.Parent = PlayerGui
  480.      coroutine.wrap(function()
  481.       for i = Frame.BackgroundTransparency, 0.9, 0.05 do
  482.        Frame.BackgroundTransparency = i
  483.        wait()
  484.       end
  485.       Gui:Remove()
  486.      end)()
  487.     end
  488.    end
  489.    if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.32 and _G.RobloxAdvanced.CriticalHitsEnabled == true and Character.Humanoid.Health > 0 and RagdollStatus == false then
  490.     RagdollStatus = true
  491.     _G.RobloxAdvanced.Ragdoll(true, Character)
  492.     Character.Humanoid.PlatformStand = true
  493.     local Sound = Instance.new("Sound", Character.Torso)
  494.     Sound.SoundId = "http://www.roblox.com/Asset/?id=260430079"
  495.     Sound.Volume = 1
  496.     Sound.Pitch = math.random(680, 730) / 1000
  497.     Sound:Play()
  498.     local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  499.     if Player ~= nil then
  500.      local PlayerGui = Player:FindFirstChild("PlayerGui")
  501.      if PlayerGui == nil then return end
  502.      if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  503.      if PlayerGui:FindFirstChild("Critical Hit") ~= nil then PlayerGui.Pain:Remove() end
  504.      local Gui = Instance.new("ScreenGui", PlayerGui)
  505.      Gui.Name = "Critical Hit"
  506.      local Frame = Instance.new("Frame", Gui)
  507.      Frame.Name = "Yellow"
  508.      Frame.Size = UDim2.new(2, 0, 2, 0)
  509.      Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  510.      Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  511.      Frame.BackgroundTransparency = 0
  512.      coroutine.wrap(function()
  513.       for i = 0, 1, 0.01 do
  514.        Frame.BackgroundTransparency = i
  515.        wait(0.25)
  516.       end
  517.       Gui:Remove()
  518.      end)()
  519.      for i = 1, 5 do
  520.       local Label = Instance.new("TextLabel", Frame)
  521.       Label.Name = "Notification"
  522.       Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  523.       Label.Text = "KNOCKED OUT"
  524.       Label.FontSize = "Size28"
  525.       Label.TextColor3 = Color3.new(0.5, 0.5, 0.5)
  526.       Label.TextTransparency = 0
  527.       coroutine.wrap(function()
  528.        while Label.Parent ~= nil do
  529.         Label.Position = UDim2.new(0.5, math.random(-25, 25), 0.5, math.random(-25, 25))
  530.         Label.FontSize = "Size" ..tostring((function()
  531.          local Size = math.random(1, 5)
  532.          if Size == 1 then
  533.           return 14
  534.          elseif Size == 2 then
  535.           return 18
  536.          elseif Size == 3 then
  537.           return 24
  538.          elseif Size == 4 then
  539.           return 36
  540.          elseif Size == 5 then
  541.           return 48
  542.          end
  543.         end)())
  544.         wait()
  545.        end
  546.       end)()
  547.       coroutine.wrap(function()
  548.        for i = 0.01, 1, 0.05 do
  549.         Label.TextTransparency = i
  550.         wait(0.2)
  551.        end
  552.       end)()
  553.      end
  554.     end
  555.     coroutine.wrap(function()
  556.      wait(18)
  557.      Character.Humanoid.PlatformStand = false
  558.      wait(20)
  559.      RagdollStatus = false
  560.     end)()
  561.    end
  562.    OldHealth = Character.Humanoid.Health
  563.   end
  564.  end))
  565.  table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Died:connect(function()
  566.   local Humanoid = Character:FindFirstChild("Humanoid")
  567.   if Humanoid == nil then return end
  568.   local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  569.   local Killer = nil
  570.   if Humanoid:FindFirstChild("creator") ~= nil then
  571.    Killer = Humanoid.creator.Value
  572.   end
  573.   if Killer ~= nil then
  574.    if Killer:FindFirstChild("RobloxAdvancedKills") == nil then
  575.     Instance.new("IntValue", Killer).Name = "RobloxAdvancedKills"
  576.    end
  577.    if Killer:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  578.     Instance.new("IntValue", Killer).Name = "RobloxAdvancedKillstreak"
  579.    end
  580.    if Player ~= nil and Player.Neutral == false and Killer.Neutral == false and Player.TeamColor == Killer.TeamColor then
  581.     Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value - 2
  582.     Killer.RobloxAdvancedKillstreak.Value = 0
  583.    else
  584.     Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value + 1
  585.     Killer.RobloxAdvancedKillstreak.Value = Killer.RobloxAdvancedKillstreak.Value + 1
  586.    end
  587.   end
  588.   if Player ~= nil then
  589.    if Player:FindFirstChild("RobloxAdvancedDeaths") == nil then
  590.     Instance.new("IntValue", Player).Name = "RobloxAdvancedDeaths"
  591.    end
  592.    if Player:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  593.     Instance.new("IntValue", Player).Name = "RobloxAdvancedKillstreak"
  594.    end
  595.    Player.RobloxAdvancedDeaths.Value = Player.RobloxAdvancedDeaths.Value + 1
  596.    Player.RobloxAdvancedKillstreak.Value = 0
  597.   end
  598.   if _G.RobloxAdvanced.RagdollOnDeath == true then
  599.    _G.RobloxAdvanced.Ragdoll(true, Character, true)
  600.   end
  601.   coroutine.wrap(function()
  602.    if _G.RobloxAdvanced.DeathGuiEnabled == false then return end
  603.    if Player == nil then return end
  604.    local PlayerGui = Player:FindFirstChild("PlayerGui")
  605.    if PlayerGui == nil then return end
  606.    local Gui = Instance.new("ScreenGui")
  607.    Gui.Name = "Death"
  608.    local Frame = Instance.new("Frame")
  609.    Frame.Name = "Black"
  610.    Frame.Size = UDim2.new(2, 0, 2, 0)
  611.    Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  612.    Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  613.    Frame.BackgroundTransparency = 1
  614.    Frame.Parent = Gui
  615.    local Label = Instance.new("TextLabel")
  616.    Label.Name = "Notification"
  617.    Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  618.    if Killer ~= nil then
  619.     if Killer == Player then
  620.      Label.Text = "YOU REKT YOURSELF!"
  621.     else
  622.      Label.Text = "You got killed by " ..Killer.Name.. "."
  623.     end
  624.    else
  625.     Label.Text = "You died."
  626.    end
  627.    Label.FontSize = "Size24"
  628.    Label.TextColor3 = Color3.new(0.5, 0.5, 0.5)
  629.    Label.TextTransparency = 1
  630.    Label.Parent = Frame
  631.    Gui.Parent = PlayerGui
  632.    wait(0.5)
  633.    for i = 1, 0, -0.05 do
  634.     Label.TextTransparency = i
  635.     wait()
  636.    end
  637.    Label.BackgroundTransparency = 0
  638.    wait(0.5)
  639.    for i = 1, 0, -0.025 do
  640.     Frame.BackgroundTransparency = i
  641.     wait()
  642.    end
  643.    Frame.BackgroundTransparency = 0
  644.    wait(0.5)
  645.    for i = 0, 1, 0.05 do
  646.     Label.TextTransparency = i
  647.     wait()
  648.    end
  649.    Label.BackgroundTransparency = 1
  650.   end)()
  651.   wait(4.5)
  652.   if Character == nil or _G.RobloxAdvanced.KeepCorpses == false then return end
  653.   if Character.Parent == nil then return end
  654.   local ReweldNeck = false
  655.   if Character:FindFirstChild("Torso") ~= nil then
  656.    if Character.Torso:FindFirstChild("Neck") ~= nil then
  657.     ReweldNeck = true
  658.    end
  659.   end
  660.   local Model = Instance.new("Model", Workspace)
  661.   Model.Name = Character.Name.. "'s Corpse"
  662.   for _, Part in pairs(Character:GetChildren()) do
  663.    if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") or Part.ClassName == "ShirtGraphic" then
  664.     Part:Clone().Parent = Model
  665.    end
  666.    for _, Part2 in pairs(Part:GetChildren()) do
  667.     if Part2.ClassName == "Sound" then
  668.      Part2.SoundId = ""
  669.      Part2.Looped = false
  670.      Part2.PlayOnRemove = false
  671.      Part2.Volume = 0
  672.      Part2.Pitch = 0
  673.      Part2:Stop()
  674.     end
  675.    end
  676.    if Part.ClassName == "Part" then
  677.     pcall(function()
  678.      Part.Parent = Model
  679.      Part.CanCollide = true
  680.     end)
  681.    end
  682.   end
  683.   local Humanoid = Instance.new("Humanoid")
  684.   Humanoid.Name = "Corpse"
  685.   Humanoid.Health = 0
  686.   Humanoid.WalkSpeed = 0
  687.   Humanoid.PlatformStand = true
  688.   Humanoid.Parent = Model
  689.   if ReweldNeck == true then
  690.    local Neck = Instance.new("Weld")
  691.    Neck.Part0 = Torso
  692.    Neck.Part1 = Head
  693.    Neck.C0 = CFrame.new(0, 1.5, 0)
  694.    Neck.Parent = Torso
  695.   end
  696.   game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  697.  end))
  698.  table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.FallingDown:connect(function() _G.RobloxAdvanced.Ragdoll(true, Character) end))
  699.  table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.GettingUp:connect(function() _G.RobloxAdvanced.Ragdoll(false, Character) end))
  700.  coroutine.wrap(function()
  701.   local function RemoveLimb(Name)
  702.    if Character:FindFirstChild(Name) == nil then return false end
  703.    local Model = Instance.new("Model")
  704.    Model.Name = "Decapitated Limb"
  705.    for _, Part in pairs(Character:GetChildren()) do
  706.     if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") then
  707.      Part:Clone().Parent = Model
  708.     end
  709.     if Part.Name == Name then
  710.      pcall(function()
  711.       Part.Parent = Model
  712.       Part.CanCollide = true
  713.       Part:BreakJoints()
  714.      end)
  715.     end
  716.    end
  717.    local Humanoid = Instance.new("Humanoid")
  718.    Humanoid.Name = "Corpse"
  719.    Humanoid.Health = 0
  720.    Humanoid.MaxHealth = 0
  721.    Humanoid.WalkSpeed = 0
  722.    Humanoid.PlatformStand = true
  723.    Humanoid.Parent = Model
  724.    Model.Parent = Workspace
  725.    game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  726.    return true, Model
  727.   end
  728.   while true do
  729.    if Character.Parent == nil then break end
  730.    if Character:FindFirstChild("Torso") == nil then break end
  731.    if Character:FindFirstChild("Humanoid") == nil then break end
  732.    if Character.Torso:FindFirstChild("Left Shoulder") == nil and Character.Torso:FindFirstChild("LeftShoulder") == nil and Character.Torso:FindFirstChild("Left Shoulder 2") == nil then
  733.     local Blood = _G.RobloxAdvanced.MakeBlood()
  734.     Blood.CFrame = Character.Torso.CFrame * CFrame.new(-1.2, 0.5, 0)
  735.     Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  736.     Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  737.     if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  738.     if Character:FindFirstChild("Left Arm") ~= nil then RemoveLimb("Left Arm") end
  739.    end
  740.    if Character.Torso:FindFirstChild("Right Shoulder") == nil and Character.Torso:FindFirstChild("RightShoulder") == nil and Character.Torso:FindFirstChild("Right Shoulder 2") == nil then
  741.     local Blood = _G.RobloxAdvanced.MakeBlood()
  742.     Blood.CFrame = Character.Torso.CFrame * CFrame.new(1.2, 0.5, 0)
  743.     Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  744.     Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  745.     if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  746.     if Character:FindFirstChild("Right Arm") ~= nil then RemoveLimb("Right Arm") end
  747.    end
  748.    if Character.Torso:FindFirstChild("Left Hip") == nil and Character.Torso:FindFirstChild("LeftHip") == nil and Character.Torso:FindFirstChild("Left Hip 2") == nil then
  749.     local Blood = _G.RobloxAdvanced.MakeBlood()
  750.     Blood.CFrame = Character.Torso.CFrame * CFrame.new(-0.5, -1.2, 0)
  751.     Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(-0.5, 0, 0)).p).unit * math.random(4, 8)
  752.     Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  753.     if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  754.     if Character:FindFirstChild("Left Leg") ~= nil then RemoveLimb("Left Leg") end
  755.    end
  756.    if Character.Torso:FindFirstChild("Right Hip") == nil and Character.Torso:FindFirstChild("RightHip") == nil and Character.Torso:FindFirstChild("Right Hip 2") == nil then
  757.     local Blood = _G.RobloxAdvanced.MakeBlood()
  758.     Blood.CFrame = Character.Torso.CFrame * CFrame.new(0.5, -1.2, 0)
  759.     Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0.5, 0, 0)).p).unit * math.random(4, 80)
  760.     Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  761.     if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  762.     if Character:FindFirstChild("Right Leg") ~= nil then RemoveLimb("Right Leg") end
  763.    end
  764.    if Character.Torso:FindFirstChild("Neck") == nil then
  765.     local Blood = _G.RobloxAdvanced.MakeBlood()
  766.     Blood.CFrame = Character.Torso.CFrame * CFrame.new(0, 1, 0)
  767.     Blood.Velocity = (Blood.Position - Character.Torso.Position).unit * math.random(25, 75)
  768.     Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  769.     if Character:FindFirstChild("Head") ~= nil then
  770.      local Blood = _G.RobloxAdvanced.MakeBlood()
  771.      Blood.CFrame = Character.Head.CFrame * CFrame.new(0, -0.5, 0)
  772.      Blood.Velocity = (Blood.Position - Character.Head.Position).unit * math.random(5, 25)
  773.      Blood.Parent = Workspace
  774.     end
  775.    end
  776.    wait(0.11)
  777.   end
  778.  end)()
  779. end
  780. _G.RobloxAdvanced.Ragdoll = function(Format, Character, Force)
  781.  if Force ~= true then
  782.   if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end
  783.   if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end
  784.  end
  785.  local Head = nil
  786.  local Torso = nil
  787.  local Humanoid = nil
  788.  local Dead = false
  789.  for _, Children in pairs(Character:GetChildren()) do
  790.   if Children.ClassName == "ForceField" then Children:Remove() end
  791.   if Children.Name == "" then Children:Remove() end
  792.   if Children.Name == "Head" then Head = Children end
  793.   if Children.Name == "Torso" then Torso = Children end
  794.   if Children.ClassName == "Humanoid" then Humanoid = Children end
  795.   if Children:IsA("Accoutrement") then
  796.    if Children:FindFirstChild("Handle") ~= nil then
  797.     if math.random(1, 3) == 1 then
  798.      coroutine.wrap(function()
  799.       Children.Parent = Workspace
  800.       wait()
  801.       Children.Parent = Character
  802.       Children.Handle.CanCollide = true
  803.      end)()
  804.     else
  805.      Children.Parent = Workspace
  806.      Children.Handle.CanCollide = true
  807.     end
  808.    else
  809.     Children:Remove()
  810.    end
  811.   end
  812.  end
  813.  if Humanoid ~= nil then
  814.   if Humanoid.Health <= 0 then
  815.    Dead = true
  816.   end
  817.  end
  818.  if Torso ~= nil then
  819.   for _, Children2 in pairs(Torso:GetChildren()) do
  820.    if Children2:IsA("JointInstance") then
  821.     Children2:Remove()
  822.    end
  823.   end
  824.  end
  825.  if Head ~= nil and (function()
  826.   if Dead == true and math.random(1, 2) == 1 then
  827.    return true
  828.   else
  829.    return false
  830.   end
  831.  end)() == false then
  832.   local Neck = Instance.new("Motor6D")
  833.   Neck.Name = "Neck"
  834.   Neck.Part0 = Torso
  835.   Neck.Part1 = Head
  836.   Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  837.   Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  838.   Neck.MaxVelocity = 0.1
  839.   Neck.Parent = Torso
  840.  end
  841.  if Format == true then
  842.   local Ragdoll = Instance.new("IntValue")
  843.   Ragdoll.Name = "Ragdoll"
  844.   Ragdoll.Parent = Character
  845.   if Torso ~= nil then
  846.    Torso.Velocity = Torso.Velocity / 1.25
  847.    Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  848.    if Dead == true then
  849.     if Humanoid ~= nil then
  850.      local Humanoid2 = Humanoid:Clone()
  851.      wait()
  852.      Humanoid:Remove()
  853.      Humanoid2.Parent = Character
  854.      Humanoid = Humanoid2
  855.     end
  856.    end
  857.    local Limb = Character:FindFirstChild("Right Arm")
  858.    if Limb ~= nil then
  859.     Limb.Velocity = Torso.Velocity
  860.     Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  861.     local Joint = Instance.new("Glue")
  862.     Joint.Name = "RightShoulder"
  863.     Joint.Part0 = Torso
  864.     Joint.Part1 = Limb
  865.     Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  866.     Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  867.     Joint.Parent = Torso
  868.     local Weight = Instance.new("Part")
  869.     Weight.Name = ""
  870.     Weight.TopSurface = 0
  871.     Weight.BottomSurface = 0
  872.     Weight.Shape = "Block"
  873.     Weight.FormFactor = "Custom"
  874.     Weight.Size = Vector3.new(1, 1, 1)
  875.     Weight.Transparency = 1
  876.     Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  877.     Weight.Parent = Character
  878.     local Weld = Instance.new("Weld")
  879.     Weld.Part0 = Limb
  880.     Weld.Part1 = Weight
  881.     Weld.C0 = CFrame.new(0, -0.5, 0)
  882.     Weld.Parent = Limb
  883.    end
  884.    local Limb = Character:FindFirstChild("Left Arm")
  885.    if Limb then
  886.     Limb.Velocity = Torso.Velocity
  887.     Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  888.     local Joint = Instance.new("Glue")
  889.     Joint.Name = "LeftShoulder"
  890.     Joint.Part0 = Torso
  891.     Joint.Part1 = Limb
  892.     Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  893.     Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  894.     Joint.Parent = Torso
  895.     local Weight = Instance.new("Part")
  896.     Weight.Name = ""
  897.     Weight.TopSurface = 0
  898.     Weight.BottomSurface = 0
  899.     Weight.Shape = "Block"
  900.     Weight.FormFactor = "Custom"
  901.     Weight.Size = Vector3.new(1, 1, 1)
  902.     Weight.Transparency = 1
  903.     Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  904.     Weight.Parent = Character
  905.     local Weld = Instance.new("Weld")
  906.     Weld.Part0 = Limb
  907.     Weld.Part1 = Weight
  908.     Weld.C0 = CFrame.new(0, -0.5, 0)
  909.     Weld.Parent = Limb
  910.    end
  911.    local Limb = Character:FindFirstChild("Right Leg")
  912.    if Limb then
  913.     Limb.Velocity = Torso.Velocity
  914.     Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  915.     local Joint = Instance.new("Glue")
  916.     Joint.Name = "RightHip"
  917.     Joint.Part0 = Torso
  918.     Joint.Part1 = Limb
  919.     Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  920.     Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  921.     Joint.Parent = Torso
  922.     local Weight = Instance.new("Part")
  923.     Weight.Name = ""
  924.     Weight.TopSurface = 0
  925.     Weight.BottomSurface = 0
  926.     Weight.Shape = "Block"
  927.     Weight.FormFactor = "Custom"
  928.     Weight.Size = Vector3.new(1, 1, 1)
  929.     Weight.Transparency = 1
  930.     Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  931.     Weight.Parent = Character
  932.     local Weld = Instance.new("Weld")
  933.     Weld.Part0 = Limb
  934.     Weld.Part1 = Weight
  935.     Weld.C0 = CFrame.new(0, -0.5, 0)
  936.     Weld.Parent = Limb
  937.    end
  938.    local Limb = Character:FindFirstChild("Left Leg")
  939.    if Limb then
  940.     Limb.Velocity = Torso.Velocity
  941.     Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  942.     local Joint = Instance.new("Glue")
  943.     Joint.Name = "LeftHip"
  944.     Joint.Part0 = Torso
  945.     Joint.Part1 = Limb
  946.     Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  947.     Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  948.     Joint.Parent = Torso
  949.     local Weight = Instance.new("Part")
  950.     Weight.Name = ""
  951.     Weight.TopSurface = 0
  952.     Weight.BottomSurface = 0
  953.     Weight.Shape = "Block"
  954.     Weight.FormFactor = "Custom"
  955.     Weight.Size = Vector3.new(1, 1, 1)
  956.     Weight.Transparency = 1
  957.     Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  958.     Weight.Parent = Character
  959.     local Weld = Instance.new("Weld")
  960.     Weld.Part0 = Limb
  961.     Weld.Part1 = Weight
  962.     Weld.C0 = CFrame.new(0, -0.5, 0)
  963.     Weld.Parent = Limb
  964.    end
  965.    local Weight = Instance.new("Part")
  966.    Weight.Name = ""
  967.    Weight.TopSurface = 0
  968.    Weight.BottomSurface = 0
  969.    Weight.Shape = "Block"
  970.    Weight.FormFactor = "Custom"
  971.    Weight.Size = Vector3.new(1.75, 1.5, 1.1)
  972.    Weight.Transparency = 1
  973.    Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  974.    Weight.Parent = Character
  975.    local Weld = Instance.new("Weld")
  976.    Weld.Part0 = Torso
  977.    Weld.Part1 = Weight
  978.    Weld.C0 = CFrame.new(0, 0.5, 0)
  979.    Weld.Parent = Torso
  980.   end
  981.  elseif Format == false then
  982.   if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end
  983.   if Torso ~= nil then
  984.    local Limb = Character:FindFirstChild("Right Arm")
  985.    if Limb ~= nil then
  986.     local Joint = Instance.new("Motor6D")
  987.     Joint.Name = "Right Shoulder"
  988.     Joint.Part0 = Torso
  989.     Joint.Part1 = Limb
  990.     Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  991.     Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  992.     Joint.MaxVelocity = 0.15
  993.     Joint.Parent = Torso
  994.    end
  995.    local Limb = Character:FindFirstChild("Left Arm")
  996.    if Limb ~= nil then
  997.     local Joint = Instance.new("Motor6D")
  998.     Joint.Name = "Left Shoulder"
  999.     Joint.Part0 = Torso
  1000.     Joint.Part1 = Limb
  1001.     Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1002.     Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1003.     Joint.MaxVelocity = 0.15
  1004.     Joint.Parent = Torso
  1005.    end
  1006.    local Limb = Character:FindFirstChild("Right Leg")
  1007.    if Limb ~= nil then
  1008.     local Joint = Instance.new("Motor6D")
  1009.     Joint.Name = "Right Hip"
  1010.     Joint.Part0 = Torso
  1011.     Joint.Part1 = Limb
  1012.     Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1013.     Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1014.     Joint.MaxVelocity = 0.1
  1015.     Joint.Parent = Torso
  1016.    end
  1017.    local Limb = Character:FindFirstChild("Left Leg")
  1018.    if Limb ~= nil then
  1019.     local Joint = Instance.new("Motor6D")
  1020.     Joint.Name = "Left Hip"
  1021.     Joint.Part0 = Torso
  1022.     Joint.Part1 = Limb
  1023.     Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1024.     Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1025.     Joint.MaxVelocity = 0.1
  1026.     Joint.Parent = Torso
  1027.    end
  1028.    local Animate = Character:FindFirstChild("Animate")
  1029.    if Animate ~= nil then
  1030.     local Animate2 = Animate:Clone()
  1031.     Animate:Remove()
  1032.     Animate2.Parent = Character
  1033.    end
  1034.   end
  1035.  else
  1036.   return false
  1037.  end
  1038.  return true, Format
  1039. end
  1040. table.insert(_G.RobloxAdvanced.Connections, Workspace.DescendantAdded:connect(_G.RobloxAdvanced.HookModelDeath))
  1041. table.insert(_G.RobloxAdvanced.Connections, game:GetService("Players").PlayerAdded:connect(_G.RobloxAdvanced.HookPlayerDeath))
  1042. for _, Players in pairs(game:GetService("Players"):GetPlayers()) do
  1043.  _G.RobloxAdvanced.HookPlayerDeath(Players)
  1044. end
  1045. for _, Children in pairs(Workspace:GetChildren()) do
  1046.  _G.RobloxAdvanced.HookModelDeath(Children)
  1047. end
  1048.  
  1049.  
RAW Paste Data