Advertisement
swagmashawn12

Blood and gore

May 19th, 2016
3,789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.91 KB | None | 0 0
  1. script.Parent = nil
  2.  
  3. script.Name = "RobloxAdvanced"
  4.  
  5. if _G.RobloxAdvanced ~= nil then
  6.  
  7. pcall(function() _G.RobloxAdvanced.Disable() end)
  8.  
  9. wait(0.5)
  10.  
  11. _G.RobloxAdvanced = nil
  12.  
  13. wait(0.5)
  14.  
  15. end
  16.  
  17. _G.RobloxAdvanced = {}
  18.  
  19. _G.RobloxAdvanced.Instance = script
  20.  
  21. _G.RobloxAdvanced.Connections = {}
  22.  
  23. _G.RobloxAdvanced.RagdollOnHit = true
  24.  
  25. _G.RobloxAdvanced.DamageOnHit = true
  26.  
  27. _G.RobloxAdvanced.CriticalHitsEnabled = true
  28.  
  29. _G.RobloxAdvanced.RagdollOnDeath = true
  30.  
  31. _G.RobloxAdvanced.KeepCorpses = true
  32.  
  33. _G.RobloxAdvanced.KeepCorpsesTime = 999e999
  34.  
  35. _G.RobloxAdvanced.ShowDamage = true
  36.  
  37. _G.RobloxAdvanced.BloodEnabled = true
  38.  
  39. _G.RobloxAdvanced.BloodGuiEnabled = true
  40.  
  41. _G.RobloxAdvanced.DeathGuiEnabled = true
  42.  
  43. _G.RobloxAdvanced.SpawnGuiEnabled = true
  44.  
  45. _G.RobloxAdvanced.HUDEnabled = false
  46.  
  47. _G.RobloxAdvanced.HUDTimeReset = function() _G.RobloxAdvanced.HUDTimeOffset = tick() end
  48.  
  49. _G.RobloxAdvanced.HUDTimeReset()
  50.  
  51. _G.RobloxAdvanced.HUDRemove = function()
  52.  
  53. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  54.  
  55. pcall(function() while true do PlayerList.PlayerGui.RobloxAdvancedHUD:Remove() end end)
  56.  
  57. end
  58.  
  59. end
  60.  
  61. _G.RobloxAdvanced.HUDShow = function()
  62.  
  63. _G.RobloxAdvanced.HUDRemove()
  64.  
  65. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  66.  
  67. _G.RobloxAdvanced.HUD(PlayerList)
  68.  
  69. end
  70.  
  71. end
  72.  
  73. _G.RobloxAdvanced.Disable = function()
  74.  
  75. _G.RobloxAdvanced.RagdollOnHit = false
  76.  
  77. _G.RobloxAdvanced.DamageOnHit = false
  78.  
  79. _G.RobloxAdvanced.CriticalHitsEnabled = false
  80.  
  81. _G.RobloxAdvanced.RagdollOnDeath = false
  82.  
  83. _G.RobloxAdvanced.KeepCorpses = false
  84.  
  85. _G.RobloxAdvanced.ShowDamage = false
  86.  
  87. _G.RobloxAdvanced.BloodEnabled = false
  88.  
  89. _G.RobloxAdvanced.BloodGuiEnabled = false
  90.  
  91. _G.RobloxAdvanced.DeathGuiEnabled = false
  92.  
  93. _G.RobloxAdvanced.SpawnGuiEnabled = false
  94.  
  95. _G.RobloxAdvanced.HUDEnabled = false
  96.  
  97. _G.RobloxAdvanced.HUDRemove()
  98.  
  99. pcall(function() _G.RobloxAdvanced.Instance.Disabled = true end)
  100.  
  101. for _, Connection in pairs(_G.RobloxAdvanced.Connections) do
  102.  
  103. pcall(function() Connection:disconnect() end)
  104.  
  105. end
  106.  
  107. end
  108.  
  109. _G.RobloxAdvanced.MakeBlood = function()
  110.  
  111. local Size = math.random(10, 75) / 100
  112.  
  113. local Blood = Instance.new("Part")
  114.  
  115. Blood.Name = "Blood"
  116.  
  117. Blood.BrickColor = BrickColor.new("Really red")
  118.  
  119. Blood.TopSurface = 0
  120.  
  121. Blood.BottomSurface = 0
  122.  
  123. Blood.FormFactor = "Custom"
  124.  
  125. Blood.Size = Vector3.new(Size, Size, Size)
  126.  
  127. Blood.CanCollide = false
  128.  
  129. Instance.new("SpecialMesh", Blood).MeshType = "Sphere"
  130.  
  131. local HasTouched = true
  132.  
  133. coroutine.wrap(function()
  134.  
  135. wait(0.09)
  136.  
  137. HasTouched = false
  138.  
  139. end)()
  140.  
  141. table.insert(_G.RobloxAdvanced.Connections, Blood.Touched:connect(function(Hit)
  142.  
  143. if Hit.Name ~= "Blood" and Hit.Name ~= "Blood Pool" then
  144.  
  145. if Hit:GetMass() < 100 and math.random(1, 30) == 1 then
  146.  
  147. Hit.BrickColor = BrickColor.new((function()
  148.  
  149. local Color = math.random(1, 2)
  150.  
  151. if Color == 1 then
  152.  
  153. return "Bright red"
  154.  
  155. elseif Color == 2 then
  156.  
  157. return "Really red"
  158.  
  159. end
  160.  
  161. end)())
  162.  
  163. end
  164.  
  165. end
  166.  
  167. if Blood.Name == "Blood" and Hit.Name == "Blood Pool" then
  168.  
  169. Blood:Remove()
  170.  
  171. elseif Blood.Name == "Blood Pool" and Hit.Name == "Blood" then
  172.  
  173. if Blood.Size.x > math.random(5, 20) or Blood.Size.z > math.random(5, 20) then return end
  174.  
  175. local _, C0, C1, Part1 = pcall(function() return Blood.Weld.C0, Blood.Weld.C1, Blood.Weld.Part1 end)
  176.  
  177. Blood.Size = Blood.Size + Vector3.new(Hit.Size.x / 5, 0, Hit.Size.z / 5)
  178.  
  179. Blood.CFrame = Part1.CFrame * C0 * C1
  180.  
  181. if C0 ~= nil and C1 ~= nil and Part1 ~= nil then
  182.  
  183. local Weld = Instance.new("Weld", Blood)
  184.  
  185. Weld.Part0 = Blood
  186.  
  187. Weld.Part1 = Part1
  188.  
  189. Weld.C0 = C0
  190.  
  191. Weld.C1 = C1
  192.  
  193. end
  194.  
  195. elseif HasTouched == false and Hit.Name ~= "Blood" then
  196.  
  197. HasTouched = true
  198.  
  199. local NewHit, Position = Workspace:FindPartOnRay(Ray.new(Blood.Position + Vector3.new(0, 1, 0), Vector3.new(0, -3, 0)), Blood)
  200.  
  201. if NewHit ~= nil and NewHit.Anchored == true then
  202.  
  203. Blood.Size = Vector3.new(Size * 2, 0.3, Size * 2)
  204.  
  205. Blood.Name = "Blood Pool"
  206.  
  207. Blood.CFrame = CFrame.new(Position)
  208.  
  209. local Weld = Instance.new("Weld", Blood)
  210.  
  211. Weld.Part0 = Blood
  212.  
  213. Weld.Part1 = NewHit
  214.  
  215. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Position)
  216.  
  217. Weld.C1 = NewHit.CFrame:inverse() * CFrame.new(Position)
  218.  
  219. else
  220.  
  221. local Weld = Instance.new("Weld", Blood)
  222.  
  223. Weld.Part0 = Blood
  224.  
  225. Weld.Part1 = Hit
  226.  
  227. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Blood.Position)
  228.  
  229. Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Blood.Position)
  230.  
  231. end
  232.  
  233. end
  234.  
  235. end))
  236.  
  237. coroutine.wrap(function()
  238.  
  239. local Size = Blood.Size
  240.  
  241. local Step = math.random(40, 100) / 1000
  242.  
  243. while Blood.Transparency < 1 do
  244.  
  245. if Blood.Name == "Blood Pool" and Size ~= Blood.Size then
  246.  
  247. Step = 0.003
  248.  
  249. Size = Blood.Size
  250.  
  251. Blood.Transparency = 0
  252.  
  253. end
  254.  
  255. Blood.Transparency = Blood.Transparency + Step
  256.  
  257. wait()
  258.  
  259. end
  260.  
  261. Blood:Remove()
  262.  
  263. end)()
  264.  
  265. return Blood
  266.  
  267. end
  268.  
  269. _G.RobloxAdvanced.HUD = function(Player)
  270.  
  271. if _G.RobloxAdvanced.HUDEnabled == false then return end
  272.  
  273. local PlayerGui = Player:FindFirstChild("PlayerGui")
  274.  
  275. if PlayerGui == nil then return end
  276.  
  277. coroutine.wrap(function()
  278.  
  279. while _G.RobloxAdvanced.HUDEnabled == true do
  280.  
  281. pcall(function()
  282.  
  283. PlayerGui.HealthGUI:Remove()
  284.  
  285. end)
  286.  
  287. wait()
  288.  
  289. end
  290.  
  291. end)()
  292.  
  293. local Gui = Instance.new("ScreenGui")
  294.  
  295. Gui.Name = "RobloxAdvancedHUD"
  296.  
  297. local Frame = Instance.new("Frame")
  298.  
  299. Frame.Name = "Background"
  300.  
  301. Frame.Size = UDim2.new(0, 500, 0, 15)
  302.  
  303. Frame.Position = UDim2.new(0.5, (-500 / 2), 1, -15)
  304.  
  305. Frame.BackgroundTransparency = 1
  306.  
  307. Frame.BorderSizePixel = 0
  308.  
  309. Frame.Parent = Gui
  310.  
  311. local Kills = Instance.new("TextLabel")
  312.  
  313. Kills.Name = "Kills"
  314.  
  315. Kills.Size = UDim2.new(1 / 5, 0, 1, 0)
  316.  
  317. Kills.Position = UDim2.new(0, 0, 0, 0)
  318.  
  319. Kills.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  320.  
  321. Kills.BorderSizePixel = 1
  322.  
  323. Kills.BorderColor3 = Color3.new(1, 1, 1)
  324.  
  325. Kills.TextColor3 = Color3.new(1, 1, 1)
  326.  
  327. Kills.Parent = Frame
  328.  
  329. coroutine.wrap(function()
  330.  
  331. while true do
  332.  
  333. Kills.Text = "Kills: " ..(Player:FindFirstChild("RobloxAdvancedKills") ~= nil and Player.RobloxAdvancedKills.Value or 0)
  334.  
  335. wait(0.5)
  336.  
  337. end
  338.  
  339. end)()
  340.  
  341. Frame.Parent = Gui
  342.  
  343. local Killstreak = Instance.new("TextLabel")
  344.  
  345. Killstreak.Name = "Killstreak"
  346.  
  347. Killstreak.Size = UDim2.new(1 / 5, 0, 1, 0)
  348.  
  349. Killstreak.Position = UDim2.new(1 / 5, 0, 0, 0)
  350.  
  351. Killstreak.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  352.  
  353. Killstreak.BorderSizePixel = 1
  354.  
  355. Killstreak.BorderColor3 = Color3.new(1, 1, 1)
  356.  
  357. Killstreak.TextColor3 = Color3.new(1, 1, 1)
  358.  
  359. Killstreak.Parent = Frame
  360.  
  361. coroutine.wrap(function()
  362.  
  363. while true do
  364.  
  365. Killstreak.Text = "Streak: " ..(Player:FindFirstChild("RobloxAdvancedKillstreak") ~= nil and Player.RobloxAdvancedKillstreak.Value or 0)
  366.  
  367. wait(0.5)
  368.  
  369. end
  370.  
  371. end)()
  372.  
  373. local Deaths = Instance.new("TextLabel")
  374.  
  375. Deaths.Name = "Deaths"
  376.  
  377. Deaths.Size = UDim2.new(1 / 5, 0, 1, 0)
  378.  
  379. Deaths.Position = UDim2.new(1 / 5 * 2, 0, 0, 0)
  380.  
  381. Deaths.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  382.  
  383. Deaths.BorderSizePixel = 1
  384.  
  385. Deaths.BorderColor3 = Color3.new(1, 1, 1)
  386.  
  387. Deaths.TextColor3 = Color3.new(1, 1, 1)
  388.  
  389. Deaths.Parent = Frame
  390.  
  391. coroutine.wrap(function()
  392.  
  393. while true do
  394.  
  395. Deaths.Text = "Deaths: " ..(Player:FindFirstChild("RobloxAdvancedDeaths") ~= nil and Player.RobloxAdvancedDeaths.Value or 0)
  396.  
  397. wait(0.5)
  398.  
  399. end
  400.  
  401. end)()
  402.  
  403. local Health = Instance.new("TextLabel")
  404.  
  405. Health.Name = "Health"
  406.  
  407. Health.Size = UDim2.new(1 / 5, 0, 1, 0)
  408.  
  409. Health.Position = UDim2.new(1 / 5 * 3, 0, 0, 0)
  410.  
  411. Health.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  412.  
  413. Health.BorderSizePixel = 1
  414.  
  415. Health.BorderColor3 = Color3.new(1, 1, 1)
  416.  
  417. Health.TextColor3 = Color3.new(1, 1, 1)
  418.  
  419. Health.Parent = Frame
  420.  
  421. coroutine.wrap(function()
  422.  
  423. for i = 0, math.huge, 0.5 do
  424.  
  425. if pcall(function() local _ = Player.Character.Humanoid end) == true then
  426.  
  427. if Player.Character.Humanoid.Health == math.huge or Player.Character.Humanoid.MaxHealth == math.huge then
  428.  
  429. Health.Text = "Invincible"
  430.  
  431. Health.BackgroundColor3 = Color3.new(0, 0, 0.5)
  432.  
  433. else
  434.  
  435. Health.Text = "Health: " ..math.floor(Player.Character.Humanoid.Health).. "/" ..math.floor(Player.Character.Humanoid.MaxHealth)
  436.  
  437. 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)
  438.  
  439. end
  440.  
  441. if Player.Character:FindFirstChild("ForceField") ~= nil then
  442.  
  443. Health.BackgroundColor3 = Color3.new(((math.sin(i) + 1) / 2), 0, 1 - ((math.sin(i) + 1) / 2))
  444.  
  445. end
  446.  
  447. else
  448.  
  449. Health.Text = "Health: Nil"
  450.  
  451. Health.BackgroundColor3 = Color3.new(0, 0, 0)
  452.  
  453. end
  454.  
  455. wait(0.05)
  456.  
  457. end
  458.  
  459. end)()
  460.  
  461. local Time = Instance.new("TextLabel")
  462.  
  463. Time.Name = "Time"
  464.  
  465. Time.Size = UDim2.new(1 / 5, 0, 1, 0)
  466.  
  467. Time.Position = UDim2.new(1 / 5 * 4, 0, 0, 0)
  468.  
  469. Time.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  470.  
  471. Time.BorderSizePixel = 1
  472.  
  473. Time.BorderColor3 = Color3.new(1, 1, 1)
  474.  
  475. Time.TextColor3 = Color3.new(1, 1, 1)
  476.  
  477. Time.Parent = Frame
  478.  
  479. coroutine.wrap(function()
  480.  
  481. while true do
  482.  
  483. local Total = tick() - _G.RobloxAdvanced.HUDTimeOffset
  484.  
  485. local Minutes = math.floor(Total / 60)
  486.  
  487. local Seconds = math.floor(Total % 60)
  488.  
  489. if string.len(Minutes) == 1 then Minutes = "0" ..Minutes end
  490.  
  491. if string.len(Seconds) == 1 then Seconds = "0" ..Seconds end
  492.  
  493. Time.Text = "Time: " ..Minutes.. ":" ..Seconds
  494.  
  495. wait(0.05)
  496.  
  497. end
  498.  
  499. end)()
  500.  
  501. Gui.Parent = PlayerGui
  502.  
  503. end
  504.  
  505. _G.RobloxAdvanced.HookPlayerDeath = function(Player)
  506.  
  507. table.insert(_G.RobloxAdvanced.Connections, Player.Changed:connect(function(Property)
  508.  
  509. if Property == "Character" then
  510.  
  511. if Player.Character ~= nil then
  512.  
  513. if _G.RobloxAdvanced.SpawnGuiEnabled == true then
  514.  
  515. local PlayerGui = Player:FindFirstChild("PlayerGui")
  516.  
  517. if PlayerGui == nil then return end
  518.  
  519. local Gui = Instance.new("ScreenGui")
  520.  
  521. Gui.Name = "Life"
  522.  
  523. local Frame = Instance.new("Frame")
  524.  
  525. Frame.Name = "White"
  526.  
  527. Frame.Size = UDim2.new(2, 0, 2, 0)
  528.  
  529. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  530.  
  531. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  532.  
  533. Frame.BackgroundTransparency = 0
  534.  
  535. Frame.Parent = Gui
  536.  
  537. Gui.Parent = PlayerGui
  538.  
  539. coroutine.wrap(function()
  540.  
  541. wait(0.1)
  542.  
  543. for i = 0, 1, 0.1 do
  544.  
  545. Frame.BackgroundColor3 = Color3.new(i, i, i)
  546.  
  547. wait()
  548.  
  549. end
  550.  
  551. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  552.  
  553. wait(0.3)
  554.  
  555. for i = 0, 1, 0.05 do
  556.  
  557. Frame.BackgroundTransparency = i
  558.  
  559. wait()
  560.  
  561. end
  562.  
  563. Gui:Remove()
  564.  
  565. end)()
  566.  
  567. end
  568.  
  569. _G.RobloxAdvanced.HUD(Player)
  570.  
  571. end
  572.  
  573. end
  574.  
  575. end))
  576.  
  577. _G.RobloxAdvanced.HUD(Player)
  578.  
  579. table.insert(_G.RobloxAdvanced.Connections, Player.Chatted:connect(function(Message)
  580.  
  581. if string.sub(Message, 0, 5) == "lego " then Message = string.sub(Message, 6) end
  582.  
  583. Message = Message:lower()
  584.  
  585. if Message == "throw me" or Message == "ragdoll" then
  586.  
  587. if Player.Character == nil then return end
  588.  
  589. if Player.Character:FindFirstChild("Humanoid") == nil then return end
  590.  
  591. if Player.Character:FindFirstChild("Torso") == nil then return end
  592.  
  593. Player.Character.Humanoid.Sit = true
  594.  
  595. _G.RobloxAdvanced.Ragdoll(true, Player.Character)
  596.  
  597. if Message == "throw me" then
  598.  
  599. Player.Character.Torso.Velocity = Player.Character.Torso.Velocity + (Player.Character.Torso.CFrame.lookVector * 150) + Vector3.new(0, 50, 0)
  600.  
  601. end
  602.  
  603. end
  604.  
  605. end))
  606.  
  607. end
  608.  
  609. _G.RobloxAdvanced.HookModelDeath = function(Character)
  610.  
  611. wait()
  612.  
  613. if Character == nil then return end
  614.  
  615. if Character:FindFirstChild("Humanoid") == nil then return end
  616.  
  617. local RagdollStatus = false
  618.  
  619. local ConnectTouched = function(Part)
  620.  
  621. if Part.Parent ~= Character then return end
  622.  
  623. pcall(function()
  624.  
  625. table.insert(_G.RobloxAdvanced.Connections, Part.Touched:connect(function(Hit)
  626.  
  627. if Hit == nil then return end
  628.  
  629. if Hit.Parent == nil then return end
  630.  
  631. if Hit.Parent ~= Character and Hit.Parent.Parent ~= Character and Hit:GetMass() > 3 then
  632.  
  633. local Velocity1 = {
  634.  
  635. math.abs(Part.Velocity.x),
  636.  
  637. math.abs(Part.Velocity.y),
  638.  
  639. math.abs(Part.Velocity.z)
  640.  
  641. }
  642.  
  643. local RotVelocity1 = {
  644.  
  645. math.abs(Part.RotVelocity.x),
  646.  
  647. math.abs(Part.RotVelocity.y),
  648.  
  649. math.abs(Part.RotVelocity.z)
  650.  
  651. }
  652.  
  653. local Velocity2 = {
  654.  
  655. math.abs(Hit.Velocity.x),
  656.  
  657. math.abs(Hit.Velocity.y),
  658.  
  659. math.abs(Hit.Velocity.z)
  660.  
  661. }
  662.  
  663. local RotVelocity2 = {
  664.  
  665. math.abs(Hit.RotVelocity.x),
  666.  
  667. math.abs(Hit.RotVelocity.y),
  668.  
  669. math.abs(Hit.RotVelocity.z)
  670.  
  671. }
  672.  
  673. if RagdollStatus == false and _G.RobloxAdvanced.RagdollOnHit == true then
  674.  
  675. for i = 1, 3 do
  676.  
  677. local Total = math.abs(Velocity1[i] - Velocity2[i])
  678.  
  679. if Total > math.random(85, 150) then
  680.  
  681. RagdollStatus = true
  682.  
  683. end
  684.  
  685. end
  686.  
  687. for i = 1, 3 do
  688.  
  689. local Total = math.abs(RotVelocity1[i] - RotVelocity2[i])
  690.  
  691. if Total > math.random(75, 100) then
  692.  
  693. RagdollStatus = true
  694.  
  695. end
  696.  
  697. end
  698.  
  699. if RagdollStatus == true then
  700.  
  701. _G.RobloxAdvanced.Ragdoll(true, Character)
  702.  
  703. if Character.Humanoid.PlatformStand == true or Character.Humanoid.Sit == true then
  704.  
  705. coroutine.wrap(function()
  706.  
  707. wait(5)
  708.  
  709. RagdollStatus = false
  710.  
  711. end)()
  712.  
  713. else
  714.  
  715. coroutine.wrap(function()
  716.  
  717. Character.Humanoid.PlatformStand = true
  718.  
  719. wait(1)
  720.  
  721. Character.Humanoid.PlatformStand = false
  722.  
  723. wait(5)
  724.  
  725. RagdollStatus = false
  726.  
  727. end)()
  728.  
  729. end
  730.  
  731. end
  732.  
  733. end
  734.  
  735. local Damage = 0
  736.  
  737. for i = 1, #Velocity1 do Damage = Damage + Velocity1[i] end
  738.  
  739. for i = 1, #RotVelocity1 do Damage = Damage + RotVelocity1[i] end
  740.  
  741. for i = 1, #Velocity2 do Damage = Damage + Velocity2[i] end
  742.  
  743. for i = 1, #RotVelocity2 do Damage = Damage + RotVelocity2[i] end
  744.  
  745. Damage = Damage / 60
  746.  
  747. if Damage >= 4 and _G.RobloxAdvanced.DamageOnHit == true then
  748.  
  749. pcall(function() Character.Humanoid:TakeDamage(math.floor(Damage)) end)
  750.  
  751. end
  752.  
  753. end
  754.  
  755. end))
  756.  
  757. end)
  758.  
  759. end
  760.  
  761. for _, Part in pairs(Character:GetChildren()) do ConnectTouched(Part) end
  762.  
  763. table.insert(_G.RobloxAdvanced.Connections, Character.ChildAdded:connect(function(Part) ConnectTouched(Part) end))
  764.  
  765. local OldHealth = Character.Humanoid.Health
  766.  
  767. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Changed:connect(function(Property)
  768.  
  769. if Property == "Health" then
  770.  
  771. local Source = nil
  772.  
  773. for _, Part in pairs(Character:GetChildren()) do
  774.  
  775. if Part:IsA("BasePart") then
  776.  
  777. if Source == nil then
  778.  
  779. Source = Part
  780.  
  781. else
  782.  
  783. 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
  784.  
  785. Source = Part
  786.  
  787. end
  788.  
  789. end
  790.  
  791. end
  792.  
  793. end
  794.  
  795. if Source == nil then return end
  796.  
  797. 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
  798.  
  799. local Model = Instance.new("Model", Workspace)
  800.  
  801. Model.Name = tostring(math.floor(Character.Humanoid.Health - OldHealth))
  802.  
  803. Model.Name = Model.Name:sub(0, 1) ~= "-" and Model.Name.. "+" or Model.Name
  804.  
  805. local Damage = Instance.new("Part", Model)
  806.  
  807. Damage.Name = "Head"
  808.  
  809. Damage.BrickColor = BrickColor.new(Model.Name:match("-") and "Really red" or "Lime green")
  810.  
  811. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 then
  812.  
  813. coroutine.wrap(function()
  814.  
  815. while Damage.Parent ~= nil do
  816.  
  817. Damage.BrickColor = BrickColor.new("New Yeller")
  818.  
  819. wait()
  820.  
  821. Damage.BrickColor = BrickColor.new("Really blue")
  822.  
  823. wait()
  824.  
  825. end
  826.  
  827. end)()
  828.  
  829. end
  830.  
  831. Damage.TopSurface = 0
  832.  
  833. Damage.BottomSurface = 0
  834.  
  835. Damage.CanCollide = false
  836.  
  837. Damage.FormFactor = "Custom"
  838.  
  839. 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)
  840.  
  841. Damage.CFrame = CFrame.new(Source.Position)
  842.  
  843. coroutine.wrap(function()
  844.  
  845. while Damage.Parent ~= nil do
  846.  
  847. Damage.CanCollide = false
  848.  
  849. wait()
  850.  
  851. end
  852.  
  853. end)()
  854.  
  855. local Humanoid = Instance.new("Humanoid", Model)
  856.  
  857. Humanoid.Name = "Sign"
  858.  
  859. Humanoid.MaxHealth = 0
  860.  
  861. Humanoid.Health = 0
  862.  
  863. Humanoid.WalkSpeed = 0
  864.  
  865. Humanoid.PlatformStand = true
  866.  
  867. local BodyVelocity = Instance.new("BodyVelocity", Damage)
  868.  
  869. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  870.  
  871. BodyVelocity.velocity = Vector3.new(0, 7, 0)
  872.  
  873. coroutine.wrap(function()
  874.  
  875. wait(1)
  876.  
  877. for i = 0, 1, 0.05 do
  878.  
  879. Damage.Transparency = i
  880.  
  881. BodyVelocity.velocity = Vector3.new(0, 7 * (1 - i), 0)
  882.  
  883. wait()
  884.  
  885. end
  886.  
  887. Model:Remove()
  888.  
  889. end)()
  890.  
  891. end
  892.  
  893. if OldHealth - Character.Humanoid.Health >= 3 then
  894.  
  895. if _G.RobloxAdvanced.BloodEnabled == true then
  896.  
  897. local Max = math.ceil((OldHealth - Character.Humanoid.Health) * 2)
  898.  
  899. for i = 1, (Max > 20 and 20 or Max + 1) do
  900.  
  901. local Blood = _G.RobloxAdvanced.MakeBlood()
  902.  
  903. Blood.CFrame = Source.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  904.  
  905. Blood.Velocity = (Blood.Position - Source.Position).unit * math.random(5, 25)
  906.  
  907. Blood.Parent = Workspace
  908.  
  909. end
  910.  
  911. end
  912.  
  913. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  914.  
  915. if Player ~= nil and _G.RobloxAdvanced.BloodGuiEnabled == true then
  916.  
  917. local PlayerGui = Player:FindFirstChild("PlayerGui")
  918.  
  919. if PlayerGui == nil then PlayerGui = Instance.new("PlayerGui", Player) end
  920.  
  921. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  922.  
  923. local Gui = Instance.new("ScreenGui")
  924.  
  925. Gui.Name = "Pain"
  926.  
  927. local Frame = Instance.new("Frame")
  928.  
  929. Frame.Name = "Red"
  930.  
  931. Frame.Size = UDim2.new(2, 0, 2, 0)
  932.  
  933. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  934.  
  935. Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  936.  
  937. Frame.BackgroundTransparency = (math.abs(OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth) * 1.2
  938.  
  939. Frame.Parent = Gui
  940.  
  941. Gui.Parent = PlayerGui
  942.  
  943. coroutine.wrap(function()
  944.  
  945. for i = Frame.BackgroundTransparency, 1, 0.05 do
  946.  
  947. Frame.BackgroundTransparency = i
  948.  
  949. wait()
  950.  
  951. end
  952.  
  953. Gui:Remove()
  954.  
  955. end)()
  956.  
  957. end
  958.  
  959. end
  960.  
  961. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 and _G.RobloxAdvanced.CriticalHitsEnabled == true and Character.Humanoid.Health > 0 and RagdollStatus == false then
  962.  
  963. RagdollStatus = true
  964.  
  965. _G.RobloxAdvanced.Ragdoll(true, Character)
  966.  
  967. Character.Humanoid.PlatformStand = true
  968.  
  969. local Sound = Instance.new("Sound", Character.Torso)
  970.  
  971. Sound.SoundId = "http://www.roblox.com/Asset/?id=2801263"
  972.  
  973. Sound.Volume = 1
  974.  
  975. Sound.Pitch = math.random(500, 700) / 1000
  976.  
  977. Sound:Play()
  978.  
  979. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  980.  
  981. if Player ~= nil then
  982.  
  983. local PlayerGui = Player:FindFirstChild("PlayerGui")
  984.  
  985. if PlayerGui == nil then return end
  986.  
  987. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  988.  
  989. if PlayerGui:FindFirstChild("Critical Hit") ~= nil then PlayerGui.Pain:Remove() end
  990.  
  991. local Gui = Instance.new("ScreenGui", PlayerGui)
  992.  
  993. Gui.Name = "Critical Hit"
  994.  
  995. local Frame = Instance.new("Frame", Gui)
  996.  
  997. Frame.Name = "Yellow"
  998.  
  999. Frame.Size = UDim2.new(2, 0, 2, 0)
  1000.  
  1001. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  1002.  
  1003. Frame.BackgroundColor3 = Color3.new(0.9, 0.9, 0)
  1004.  
  1005. Frame.BackgroundTransparency = 0
  1006.  
  1007. coroutine.wrap(function()
  1008.  
  1009. for i = 0, 1, 0.01 do
  1010.  
  1011. Frame.BackgroundTransparency = i
  1012.  
  1013. wait()
  1014.  
  1015. end
  1016.  
  1017. Gui:Remove()
  1018.  
  1019. end)()
  1020.  
  1021. for i = 1, 5 do
  1022.  
  1023. local Label = Instance.new("TextLabel", Frame)
  1024.  
  1025. Label.Name = "Notification"
  1026.  
  1027. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  1028.  
  1029. Label.Text = "CRITICAL HIT"
  1030.  
  1031. Label.FontSize = "Size18"
  1032.  
  1033. Label.TextColor3 = Color3.new(1, 0.5, 0)
  1034.  
  1035. Label.TextTransparency = 0
  1036.  
  1037. coroutine.wrap(function()
  1038.  
  1039. while Label.Parent ~= nil do
  1040.  
  1041. Label.Position = UDim2.new(0.5, math.random(-25, 25), 0.5, math.random(-25, 25))
  1042.  
  1043. Label.FontSize = "Size" ..tostring((function()
  1044.  
  1045. local Size = math.random(1, 5)
  1046.  
  1047. if Size == 1 then
  1048.  
  1049. return 14
  1050.  
  1051. elseif Size == 2 then
  1052.  
  1053. return 18
  1054.  
  1055. elseif Size == 3 then
  1056.  
  1057. return 24
  1058.  
  1059. elseif Size == 4 then
  1060.  
  1061. return 36
  1062.  
  1063. elseif Size == 5 then
  1064.  
  1065. return 48
  1066.  
  1067. end
  1068.  
  1069. end)())
  1070.  
  1071. wait()
  1072.  
  1073. end
  1074.  
  1075. end)()
  1076.  
  1077. coroutine.wrap(function()
  1078.  
  1079. for i = 0.01, 1, 0.05 do
  1080.  
  1081. Label.TextTransparency = i
  1082.  
  1083. wait()
  1084.  
  1085. end
  1086.  
  1087. end)()
  1088.  
  1089. end
  1090.  
  1091. end
  1092.  
  1093. coroutine.wrap(function()
  1094.  
  1095. wait(3)
  1096.  
  1097. Character.Humanoid.PlatformStand = false
  1098.  
  1099. wait(5)
  1100.  
  1101. RagdollStatus = false
  1102.  
  1103. end)()
  1104.  
  1105. end
  1106.  
  1107. OldHealth = Character.Humanoid.Health
  1108.  
  1109. end
  1110.  
  1111. end))
  1112.  
  1113. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Died:connect(function()
  1114.  
  1115. local Humanoid = Character:FindFirstChild("Humanoid")
  1116.  
  1117. if Humanoid == nil then return end
  1118.  
  1119. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  1120.  
  1121. local Killer = nil
  1122.  
  1123. if Humanoid:FindFirstChild("creator") ~= nil then
  1124.  
  1125. Killer = Humanoid.creator.Value
  1126.  
  1127. end
  1128.  
  1129. if Killer ~= nil then
  1130.  
  1131. if Killer:FindFirstChild("RobloxAdvancedKills") == nil then
  1132.  
  1133. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKills"
  1134.  
  1135. end
  1136.  
  1137. if Killer:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  1138.  
  1139. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKillstreak"
  1140.  
  1141. end
  1142.  
  1143. if Player ~= nil and Player.Neutral == false and Killer.Neutral == false and Player.TeamColor == Killer.TeamColor then
  1144.  
  1145. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value - 2
  1146.  
  1147. Killer.RobloxAdvancedKillstreak.Value = 0
  1148.  
  1149. else
  1150.  
  1151. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value + 1
  1152.  
  1153. Killer.RobloxAdvancedKillstreak.Value = Killer.RobloxAdvancedKillstreak.Value + 1
  1154.  
  1155. end
  1156.  
  1157. end
  1158.  
  1159. if Player ~= nil then
  1160.  
  1161. if Player:FindFirstChild("RobloxAdvancedDeaths") == nil then
  1162.  
  1163. Instance.new("IntValue", Player).Name = "RobloxAdvancedDeaths"
  1164.  
  1165. end
  1166.  
  1167. if Player:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  1168.  
  1169. Instance.new("IntValue", Player).Name = "RobloxAdvancedKillstreak"
  1170.  
  1171. end
  1172.  
  1173. Player.RobloxAdvancedDeaths.Value = Player.RobloxAdvancedDeaths.Value + 1
  1174.  
  1175. Player.RobloxAdvancedKillstreak.Value = 0
  1176.  
  1177. end
  1178.  
  1179. if _G.RobloxAdvanced.RagdollOnDeath == true then
  1180.  
  1181. _G.RobloxAdvanced.Ragdoll(true, Character, true)
  1182.  
  1183. end
  1184.  
  1185. coroutine.wrap(function()
  1186.  
  1187. if _G.RobloxAdvanced.DeathGuiEnabled == false then return end
  1188.  
  1189. if Player == nil then return end
  1190.  
  1191. local PlayerGui = Player:FindFirstChild("PlayerGui")
  1192.  
  1193. if PlayerGui == nil then return end
  1194.  
  1195. local Gui = Instance.new("ScreenGui")
  1196.  
  1197. Gui.Name = "Death"
  1198.  
  1199. local Frame = Instance.new("Frame")
  1200.  
  1201. Frame.Name = "Black"
  1202.  
  1203. Frame.Size = UDim2.new(2, 0, 2, 0)
  1204.  
  1205. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  1206.  
  1207. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  1208.  
  1209. Frame.BackgroundTransparency = 1
  1210.  
  1211. Frame.Parent = Gui
  1212.  
  1213. local Label = Instance.new("TextLabel")
  1214.  
  1215. Label.Name = "Notification"
  1216.  
  1217. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  1218.  
  1219. if Killer ~= nil then
  1220.  
  1221. if Killer == Player then
  1222.  
  1223. Label.Text = "You have killed yourself."
  1224.  
  1225. else
  1226.  
  1227. Label.Text = "You have been killed by " ..Killer.Name.. "."
  1228.  
  1229. end
  1230.  
  1231. else
  1232.  
  1233. Label.Text = "You have died."
  1234.  
  1235. end
  1236.  
  1237. Label.FontSize = "Size24"
  1238.  
  1239. Label.TextColor3 = Color3.new(1, 0.5, 0)
  1240.  
  1241. Label.TextTransparency = 1
  1242.  
  1243. Label.Parent = Frame
  1244.  
  1245. Gui.Parent = PlayerGui
  1246.  
  1247. wait(0.5)
  1248.  
  1249. for i = 1, 0, -0.05 do
  1250.  
  1251. Label.TextTransparency = i
  1252.  
  1253. wait()
  1254.  
  1255. end
  1256.  
  1257. Label.BackgroundTransparency = 0
  1258.  
  1259. wait(0.5)
  1260.  
  1261. for i = 1, 0, -0.025 do
  1262.  
  1263. Frame.BackgroundTransparency = i
  1264.  
  1265. wait()
  1266.  
  1267. end
  1268.  
  1269. Frame.BackgroundTransparency = 0
  1270.  
  1271. wait(0.5)
  1272.  
  1273. for i = 0, 1, 0.05 do
  1274.  
  1275. Label.TextTransparency = i
  1276.  
  1277. wait()
  1278.  
  1279. end
  1280.  
  1281. Label.BackgroundTransparency = 1
  1282.  
  1283. end)()
  1284.  
  1285. wait(4.5)
  1286.  
  1287. if Character == nil or _G.RobloxAdvanced.KeepCorpses == false then return end
  1288.  
  1289. if Character.Parent == nil then return end
  1290.  
  1291. local ReweldNeck = false
  1292.  
  1293. if Character:FindFirstChild("Torso") ~= nil then
  1294.  
  1295. if Character.Torso:FindFirstChild("Neck") ~= nil then
  1296.  
  1297. ReweldNeck = true
  1298.  
  1299. end
  1300.  
  1301. end
  1302.  
  1303. local Model = Instance.new("Model", Workspace)
  1304.  
  1305. Model.Name = Character.Name.. "'s Corpse"
  1306.  
  1307. for _, Part in pairs(Character:GetChildren()) do
  1308.  
  1309. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") or Part.ClassName == "ShirtGraphic" then
  1310.  
  1311. Part:Clone().Parent = Model
  1312.  
  1313. end
  1314.  
  1315. for _, Part2 in pairs(Part:GetChildren()) do
  1316.  
  1317. if Part2.ClassName == "Sound" then
  1318.  
  1319. Part2.SoundId = ""
  1320.  
  1321. Part2.Looped = false
  1322.  
  1323. Part2.PlayOnRemove = false
  1324.  
  1325. Part2.Volume = 0
  1326.  
  1327. Part2.Pitch = 0
  1328.  
  1329. Part2:Stop()
  1330.  
  1331. end
  1332.  
  1333. end
  1334.  
  1335. if Part.ClassName == "Part" then
  1336.  
  1337. pcall(function()
  1338.  
  1339. Part.Parent = Model
  1340.  
  1341. Part.CanCollide = true
  1342.  
  1343. end)
  1344.  
  1345. end
  1346.  
  1347. end
  1348.  
  1349. local Humanoid = Instance.new("Humanoid")
  1350.  
  1351. Humanoid.Name = "Corpse"
  1352.  
  1353. Humanoid.Health = 0
  1354.  
  1355. Humanoid.WalkSpeed = 0
  1356.  
  1357. Humanoid.PlatformStand = true
  1358.  
  1359. Humanoid.Parent = Model
  1360.  
  1361. if ReweldNeck == true then
  1362.  
  1363. local Neck = Instance.new("Weld")
  1364.  
  1365. Neck.Part0 = Torso
  1366.  
  1367. Neck.Part1 = Head
  1368.  
  1369. Neck.C0 = CFrame.new(0, 1.5, 0)
  1370.  
  1371. Neck.Parent = Torso
  1372.  
  1373. end
  1374.  
  1375. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  1376.  
  1377. end))
  1378.  
  1379. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.FallingDown:connect(function() _G.RobloxAdvanced.Ragdoll(true, Character) end))
  1380.  
  1381. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.GettingUp:connect(function() _G.RobloxAdvanced.Ragdoll(false, Character) end))
  1382.  
  1383. coroutine.wrap(function()
  1384.  
  1385. local function RemoveLimb(Name)
  1386.  
  1387. if Character:FindFirstChild(Name) == nil then return false end
  1388.  
  1389. local Model = Instance.new("Model")
  1390.  
  1391. Model.Name = "Decapitated Limb"
  1392.  
  1393. for _, Part in pairs(Character:GetChildren()) do
  1394.  
  1395. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") then
  1396.  
  1397. Part:Clone().Parent = Model
  1398.  
  1399. end
  1400.  
  1401. if Part.Name == Name then
  1402.  
  1403. pcall(function()
  1404.  
  1405. Part.Parent = Model
  1406.  
  1407. Part.CanCollide = true
  1408.  
  1409. Part:BreakJoints()
  1410.  
  1411. end)
  1412.  
  1413. end
  1414.  
  1415. end
  1416.  
  1417. local Humanoid = Instance.new("Humanoid")
  1418.  
  1419. Humanoid.Name = "Corpse"
  1420.  
  1421. Humanoid.Health = 0
  1422.  
  1423. Humanoid.MaxHealth = 0
  1424.  
  1425. Humanoid.WalkSpeed = 0
  1426.  
  1427. Humanoid.PlatformStand = true
  1428.  
  1429. Humanoid.Parent = Model
  1430.  
  1431. Model.Parent = Workspace
  1432.  
  1433. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  1434.  
  1435. return true, Model
  1436.  
  1437. end
  1438.  
  1439. while true do
  1440.  
  1441. if Character.Parent == nil then break end
  1442.  
  1443. if Character:FindFirstChild("Torso") == nil then break end
  1444.  
  1445. if Character:FindFirstChild("Humanoid") == nil then break end
  1446.  
  1447. if Character.Torso:FindFirstChild("Left Shoulder") == nil and Character.Torso:FindFirstChild("LeftShoulder") == nil and Character.Torso:FindFirstChild("Left Shoulder 2") == nil then
  1448.  
  1449. local Blood = _G.RobloxAdvanced.MakeBlood()
  1450.  
  1451. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-1.2, 0.5, 0)
  1452.  
  1453. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  1454.  
  1455. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  1456.  
  1457. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  1458.  
  1459. if Character:FindFirstChild("Left Arm") ~= nil then RemoveLimb("Left Arm") end
  1460.  
  1461. end
  1462.  
  1463. if Character.Torso:FindFirstChild("Right Shoulder") == nil and Character.Torso:FindFirstChild("RightShoulder") == nil and Character.Torso:FindFirstChild("Right Shoulder 2") == nil then
  1464.  
  1465. local Blood = _G.RobloxAdvanced.MakeBlood()
  1466.  
  1467. Blood.CFrame = Character.Torso.CFrame * CFrame.new(1.2, 0.5, 0)
  1468.  
  1469. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  1470.  
  1471. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  1472.  
  1473. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  1474.  
  1475. if Character:FindFirstChild("Right Arm") ~= nil then RemoveLimb("Right Arm") end
  1476.  
  1477. end
  1478.  
  1479. if Character.Torso:FindFirstChild("Left Hip") == nil and Character.Torso:FindFirstChild("LeftHip") == nil and Character.Torso:FindFirstChild("Left Hip 2") == nil then
  1480.  
  1481. local Blood = _G.RobloxAdvanced.MakeBlood()
  1482.  
  1483. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-0.5, -1.2, 0)
  1484.  
  1485. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(-0.5, 0, 0)).p).unit * math.random(4, 8)
  1486.  
  1487. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  1488.  
  1489. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  1490.  
  1491. if Character:FindFirstChild("Left Leg") ~= nil then RemoveLimb("Left Leg") end
  1492.  
  1493. end
  1494.  
  1495. if Character.Torso:FindFirstChild("Right Hip") == nil and Character.Torso:FindFirstChild("RightHip") == nil and Character.Torso:FindFirstChild("Right Hip 2") == nil then
  1496.  
  1497. local Blood = _G.RobloxAdvanced.MakeBlood()
  1498.  
  1499. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0.5, -1.2, 0)
  1500.  
  1501. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0.5, 0, 0)).p).unit * math.random(4, 80)
  1502.  
  1503. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  1504.  
  1505. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  1506.  
  1507. if Character:FindFirstChild("Right Leg") ~= nil then RemoveLimb("Right Leg") end
  1508.  
  1509. end
  1510.  
  1511. if Character.Torso:FindFirstChild("Neck") == nil then
  1512.  
  1513. local Blood = _G.RobloxAdvanced.MakeBlood()
  1514.  
  1515. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0, 1, 0)
  1516.  
  1517. Blood.Velocity = (Blood.Position - Character.Torso.Position).unit * math.random(25, 75)
  1518.  
  1519. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  1520.  
  1521. if Character:FindFirstChild("Head") ~= nil then
  1522.  
  1523. local Blood = _G.RobloxAdvanced.MakeBlood()
  1524.  
  1525. Blood.CFrame = Character.Head.CFrame * CFrame.new(0, -0.5, 0)
  1526.  
  1527. Blood.Velocity = (Blood.Position - Character.Head.Position).unit * math.random(5, 25)
  1528.  
  1529. Blood.Parent = Workspace
  1530.  
  1531. end
  1532.  
  1533. end
  1534.  
  1535. wait(0.11)
  1536.  
  1537. end
  1538.  
  1539. end)()
  1540.  
  1541. end
  1542.  
  1543. _G.RobloxAdvanced.Ragdoll = function(Format, Character, Force)
  1544.  
  1545. if Force ~= true then
  1546.  
  1547. if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end
  1548.  
  1549. if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end
  1550.  
  1551. end
  1552.  
  1553. local Head = nil
  1554.  
  1555. local Torso = nil
  1556.  
  1557. local Humanoid = nil
  1558.  
  1559. local Dead = false
  1560.  
  1561. for _, Children in pairs(Character:GetChildren()) do
  1562.  
  1563. if Children.ClassName == "ForceField" then Children:Remove() end
  1564.  
  1565. if Children.Name == "" then Children:Remove() end
  1566.  
  1567. if Children.Name == "Head" then Head = Children end
  1568.  
  1569. if Children.Name == "Torso" then Torso = Children end
  1570.  
  1571. if Children.ClassName == "Humanoid" then Humanoid = Children end
  1572.  
  1573. if Children:IsA("Accoutrement") then
  1574.  
  1575. if Children:FindFirstChild("Handle") ~= nil then
  1576.  
  1577. if math.random(1, 3) == 1 then
  1578.  
  1579. coroutine.wrap(function()
  1580.  
  1581. Children.Parent = Workspace
  1582.  
  1583. wait()
  1584.  
  1585. Children.Parent = Character
  1586.  
  1587. Children.Handle.CanCollide = true
  1588.  
  1589. end)()
  1590.  
  1591. else
  1592.  
  1593. Children.Parent = Workspace
  1594.  
  1595. Children.Handle.CanCollide = true
  1596.  
  1597. end
  1598.  
  1599. else
  1600.  
  1601. Children:Remove()
  1602.  
  1603. end
  1604.  
  1605. end
  1606.  
  1607. end
  1608.  
  1609. if Humanoid ~= nil then
  1610.  
  1611. if Humanoid.Health <= 0 then
  1612.  
  1613. Dead = true
  1614.  
  1615. end
  1616.  
  1617. end
  1618.  
  1619. if Torso ~= nil then
  1620.  
  1621. for _, Children2 in pairs(Torso:GetChildren()) do
  1622.  
  1623. if Children2:IsA("JointInstance") then
  1624.  
  1625. Children2:Remove()
  1626.  
  1627. end
  1628.  
  1629. end
  1630.  
  1631. end
  1632.  
  1633. if Head ~= nil and (function()
  1634.  
  1635. if Dead == true and math.random(1, 2) == 1 then
  1636.  
  1637. return true
  1638.  
  1639. else
  1640.  
  1641. return false
  1642.  
  1643. end
  1644.  
  1645. end)() == false then
  1646.  
  1647. local Neck = Instance.new("Motor6D")
  1648.  
  1649. Neck.Name = "Neck"
  1650.  
  1651. Neck.Part0 = Torso
  1652.  
  1653. Neck.Part1 = Head
  1654.  
  1655. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  1656.  
  1657. Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  1658.  
  1659. Neck.MaxVelocity = 0.1
  1660.  
  1661. Neck.Parent = Torso
  1662.  
  1663. end
  1664.  
  1665. if Format == true then
  1666.  
  1667. local Ragdoll = Instance.new("IntValue")
  1668.  
  1669. Ragdoll.Name = "Ragdoll"
  1670.  
  1671. Ragdoll.Parent = Character
  1672.  
  1673. if Torso ~= nil then
  1674.  
  1675. Torso.Velocity = Torso.Velocity / 1.25
  1676.  
  1677. Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  1678.  
  1679. if Dead == true then
  1680.  
  1681. if Humanoid ~= nil then
  1682.  
  1683. local Humanoid2 = Humanoid:Clone()
  1684.  
  1685. wait()
  1686.  
  1687. Humanoid:Remove()
  1688.  
  1689. Humanoid2.Parent = Character
  1690.  
  1691. Humanoid = Humanoid2
  1692.  
  1693. end
  1694.  
  1695. end
  1696.  
  1697. local Limb = Character:FindFirstChild("Right Arm")
  1698.  
  1699. if Limb ~= nil then
  1700.  
  1701. Limb.Velocity = Torso.Velocity
  1702.  
  1703. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1704.  
  1705. local Joint = Instance.new("Glue")
  1706.  
  1707. Joint.Name = "RightShoulder"
  1708.  
  1709. Joint.Part0 = Torso
  1710.  
  1711. Joint.Part1 = Limb
  1712.  
  1713. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1714.  
  1715. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1716.  
  1717. Joint.Parent = Torso
  1718.  
  1719. local Weight = Instance.new("Part")
  1720.  
  1721. Weight.Name = ""
  1722.  
  1723. Weight.TopSurface = 0
  1724.  
  1725. Weight.BottomSurface = 0
  1726.  
  1727. Weight.Shape = "Block"
  1728.  
  1729. Weight.FormFactor = "Custom"
  1730.  
  1731. Weight.Size = Vector3.new(1, 1, 1)
  1732.  
  1733. Weight.Transparency = 1
  1734.  
  1735. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1736.  
  1737. Weight.Parent = Character
  1738.  
  1739. local Weld = Instance.new("Weld")
  1740.  
  1741. Weld.Part0 = Limb
  1742.  
  1743. Weld.Part1 = Weight
  1744.  
  1745. Weld.C0 = CFrame.new(0, -0.5, 0)
  1746.  
  1747. Weld.Parent = Limb
  1748.  
  1749. end
  1750.  
  1751. local Limb = Character:FindFirstChild("Left Arm")
  1752.  
  1753. if Limb then
  1754.  
  1755. Limb.Velocity = Torso.Velocity
  1756.  
  1757. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1758.  
  1759. local Joint = Instance.new("Glue")
  1760.  
  1761. Joint.Name = "LeftShoulder"
  1762.  
  1763. Joint.Part0 = Torso
  1764.  
  1765. Joint.Part1 = Limb
  1766.  
  1767. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1768.  
  1769. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1770.  
  1771. Joint.Parent = Torso
  1772.  
  1773. local Weight = Instance.new("Part")
  1774.  
  1775. Weight.Name = ""
  1776.  
  1777. Weight.TopSurface = 0
  1778.  
  1779. Weight.BottomSurface = 0
  1780.  
  1781. Weight.Shape = "Block"
  1782.  
  1783. Weight.FormFactor = "Custom"
  1784.  
  1785. Weight.Size = Vector3.new(1, 1, 1)
  1786.  
  1787. Weight.Transparency = 1
  1788.  
  1789. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1790.  
  1791. Weight.Parent = Character
  1792.  
  1793. local Weld = Instance.new("Weld")
  1794.  
  1795. Weld.Part0 = Limb
  1796.  
  1797. Weld.Part1 = Weight
  1798.  
  1799. Weld.C0 = CFrame.new(0, -0.5, 0)
  1800.  
  1801. Weld.Parent = Limb
  1802.  
  1803. end
  1804.  
  1805. local Limb = Character:FindFirstChild("Right Leg")
  1806.  
  1807. if Limb then
  1808.  
  1809. Limb.Velocity = Torso.Velocity
  1810.  
  1811. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1812.  
  1813. local Joint = Instance.new("Glue")
  1814.  
  1815. Joint.Name = "RightHip"
  1816.  
  1817. Joint.Part0 = Torso
  1818.  
  1819. Joint.Part1 = Limb
  1820.  
  1821. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1822.  
  1823. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1824.  
  1825. Joint.Parent = Torso
  1826.  
  1827. local Weight = Instance.new("Part")
  1828.  
  1829. Weight.Name = ""
  1830.  
  1831. Weight.TopSurface = 0
  1832.  
  1833. Weight.BottomSurface = 0
  1834.  
  1835. Weight.Shape = "Block"
  1836.  
  1837. Weight.FormFactor = "Custom"
  1838.  
  1839. Weight.Size = Vector3.new(1, 1, 1)
  1840.  
  1841. Weight.Transparency = 1
  1842.  
  1843. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1844.  
  1845. Weight.Parent = Character
  1846.  
  1847. local Weld = Instance.new("Weld")
  1848.  
  1849. Weld.Part0 = Limb
  1850.  
  1851. Weld.Part1 = Weight
  1852.  
  1853. Weld.C0 = CFrame.new(0, -0.5, 0)
  1854.  
  1855. Weld.Parent = Limb
  1856.  
  1857. end
  1858.  
  1859. local Limb = Character:FindFirstChild("Left Leg")
  1860.  
  1861. if Limb then
  1862.  
  1863. Limb.Velocity = Torso.Velocity
  1864.  
  1865. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1866.  
  1867. local Joint = Instance.new("Glue")
  1868.  
  1869. Joint.Name = "LeftHip"
  1870.  
  1871. Joint.Part0 = Torso
  1872.  
  1873. Joint.Part1 = Limb
  1874.  
  1875. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1876.  
  1877. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1878.  
  1879. Joint.Parent = Torso
  1880.  
  1881. local Weight = Instance.new("Part")
  1882.  
  1883. Weight.Name = ""
  1884.  
  1885. Weight.TopSurface = 0
  1886.  
  1887. Weight.BottomSurface = 0
  1888.  
  1889. Weight.Shape = "Block"
  1890.  
  1891. Weight.FormFactor = "Custom"
  1892.  
  1893. Weight.Size = Vector3.new(1, 1, 1)
  1894.  
  1895. Weight.Transparency = 1
  1896.  
  1897. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1898.  
  1899. Weight.Parent = Character
  1900.  
  1901. local Weld = Instance.new("Weld")
  1902.  
  1903. Weld.Part0 = Limb
  1904.  
  1905. Weld.Part1 = Weight
  1906.  
  1907. Weld.C0 = CFrame.new(0, -0.5, 0)
  1908.  
  1909. Weld.Parent = Limb
  1910.  
  1911. end
  1912.  
  1913. local Weight = Instance.new("Part")
  1914.  
  1915. Weight.Name = ""
  1916.  
  1917. Weight.TopSurface = 0
  1918.  
  1919. Weight.BottomSurface = 0
  1920.  
  1921. Weight.Shape = "Block"
  1922.  
  1923. Weight.FormFactor = "Custom"
  1924.  
  1925. Weight.Size = Vector3.new(1.75, 1.5, 1.1)
  1926.  
  1927. Weight.Transparency = 1
  1928.  
  1929. Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  1930.  
  1931. Weight.Parent = Character
  1932.  
  1933. local Weld = Instance.new("Weld")
  1934.  
  1935. Weld.Part0 = Torso
  1936.  
  1937. Weld.Part1 = Weight
  1938.  
  1939. Weld.C0 = CFrame.new(0, 0.5, 0)
  1940.  
  1941. Weld.Parent = Torso
  1942.  
  1943. end
  1944.  
  1945. elseif Format == false then
  1946.  
  1947. if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end
  1948.  
  1949. if Torso ~= nil then
  1950.  
  1951. local Limb = Character:FindFirstChild("Right Arm")
  1952.  
  1953. if Limb ~= nil then
  1954.  
  1955. local Joint = Instance.new("Motor6D")
  1956.  
  1957. Joint.Name = "Right Shoulder"
  1958.  
  1959. Joint.Part0 = Torso
  1960.  
  1961. Joint.Part1 = Limb
  1962.  
  1963. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1964.  
  1965. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1966.  
  1967. Joint.MaxVelocity = 0.15
  1968.  
  1969. Joint.Parent = Torso
  1970.  
  1971. end
  1972.  
  1973. local Limb = Character:FindFirstChild("Left Arm")
  1974.  
  1975. if Limb ~= nil then
  1976.  
  1977. local Joint = Instance.new("Motor6D")
  1978.  
  1979. Joint.Name = "Left Shoulder"
  1980.  
  1981. Joint.Part0 = Torso
  1982.  
  1983. Joint.Part1 = Limb
  1984.  
  1985. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1986.  
  1987. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1988.  
  1989. Joint.MaxVelocity = 0.15
  1990.  
  1991. Joint.Parent = Torso
  1992.  
  1993. end
  1994.  
  1995. local Limb = Character:FindFirstChild("Right Leg")
  1996.  
  1997. if Limb ~= nil then
  1998.  
  1999. local Joint = Instance.new("Motor6D")
  2000.  
  2001. Joint.Name = "Right Hip"
  2002.  
  2003. Joint.Part0 = Torso
  2004.  
  2005. Joint.Part1 = Limb
  2006.  
  2007. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  2008.  
  2009. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  2010.  
  2011. Joint.MaxVelocity = 0.1
  2012.  
  2013. Joint.Parent = Torso
  2014.  
  2015. end
  2016.  
  2017. local Limb = Character:FindFirstChild("Left Leg")
  2018.  
  2019. if Limb ~= nil then
  2020.  
  2021. local Joint = Instance.new("Motor6D")
  2022.  
  2023. Joint.Name = "Left Hip"
  2024.  
  2025. Joint.Part0 = Torso
  2026.  
  2027. Joint.Part1 = Limb
  2028.  
  2029. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  2030.  
  2031. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  2032.  
  2033. Joint.MaxVelocity = 0.1
  2034.  
  2035. Joint.Parent = Torso
  2036.  
  2037. end
  2038.  
  2039. local Animate = Character:FindFirstChild("Animate")
  2040.  
  2041. if Animate ~= nil then
  2042.  
  2043. local Animate2 = Animate:Clone()
  2044.  
  2045. Animate:Remove()
  2046.  
  2047. Animate2.Parent = Character
  2048.  
  2049. end
  2050.  
  2051. end
  2052.  
  2053. else
  2054.  
  2055. return false
  2056.  
  2057. end
  2058.  
  2059. return true, Format
  2060.  
  2061. end
  2062.  
  2063. table.insert(_G.RobloxAdvanced.Connections, Workspace.DescendantAdded:connect(_G.RobloxAdvanced.HookModelDeath))
  2064.  
  2065. table.insert(_G.RobloxAdvanced.Connections, game:GetService("Players").PlayerAdded:connect(_G.RobloxAdvanced.HookPlayerDeath))
  2066.  
  2067. for _, Players in pairs(game:GetService("Players"):GetPlayers()) do
  2068.  
  2069. _G.RobloxAdvanced.HookPlayerDeath(Players)
  2070.  
  2071. end
  2072.  
  2073. for _, Children in pairs(Workspace:GetChildren()) do
  2074.  
  2075. _G.RobloxAdvanced.HookModelDeath(Children)
  2076.  
  2077. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement