SansjustSans2

ignore this script

Jan 20th, 2021
329
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(0.1)
  2. local Character = script.Parent
  3. local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
  4. Humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  5. local Value = Instance.new("NumberValue",script)
  6. Value.Name = "Damage"
  7. local Halt = false
  8. local Halt2 = false
  9. local HeldTag = nil
  10. local LastDown = false
  11. local During = false
  12. local LastValue = 0
  13. local Color = Color3.new(1,1,1)
  14. local Sound = Instance.new("Sound",Character:WaitForChild("Head"))
  15. Sound.SoundId = "rbxassetid://877221802"
  16. Sound.EmitterSize = 100
  17. Sound.MaxDistance = 100000
  18. Humanoid.MaxHealth = 200
  19. local BBG = Instance.new("BillboardGui",Character)
  20. BBG.Adornee = Character:WaitForChild("Head")
  21. BBG.Size = UDim2.new(5,0,5,0)
  22. BBG.LightInfluence = 0.1
  23. BBG.StudsOffsetWorldSpace = Vector3.new(0,3,0)
  24. local TL = Instance.new("TextLabel",BBG)
  25. TL.AnchorPoint = Vector2.new(0.5,0)
  26. TL.Position = UDim2.new(0.5,0,-0.5,0)
  27. TL.Size = UDim2.new(2,0,2,0)
  28. TL.BackgroundTransparency = 1
  29. TL.TextStrokeTransparency = 0
  30. TL.TextScaled = true
  31. TL.Font = Enum.Font.SciFi
  32. TL.TextColor3 = Color3.new(1,1,1)
  33. TL.TextStrokeColor3 = Color3.new(0,0,0)
  34.  
  35. function Changed()
  36.     TL.Text = math.ceil(Value.Value / 10).."%"
  37.     local Player = game.Players:GetPlayerFromCharacter(Character)
  38.     if Player then
  39.         local leaderstats = Player:FindFirstChild("leaderstats")
  40.         if leaderstats then
  41.             local damagestats = leaderstats:FindFirstChild("Damage")
  42.                 if not damagestats then
  43.                     damagestats = Instance.new("IntValue")
  44.                     damagestats.Name = "Damage"
  45.                     damagestats.Parent = leaderstats
  46.                 end
  47.             damagestats.Value = math.ceil(Value.Value / 10)
  48.         end
  49.     end
  50.     if LastValue >= Value.Value then
  51.         LastDown = false
  52.     else
  53.         LastDown = true
  54.     end
  55.     LastValue = Value.Value
  56.     if LastDown then
  57.         During = true
  58.         for i = 1,2 do
  59.             BBG.StudsOffsetWorldSpace = Vector3.new(0,4,0)
  60.             TL.TextColor3 = Color3.new(1,0,0)
  61.             TL.TextStrokeColor3 = Color3.new(1,1,1)
  62.             wait(0.01)
  63.             BBG.StudsOffsetWorldSpace = Vector3.new(0,2,0)
  64.             TL.TextColor3 = Color3.new(1,0,0)
  65.             TL.TextStrokeColor3 = Color3.new(1,1,1)
  66.             wait(0.01)
  67.         end
  68.         BBG.StudsOffsetWorldSpace = Vector3.new(0,3,0)
  69.         TL.TextColor3 = Color3.new(1,1,1)
  70.         TL.TextStrokeColor3 = Color3.new(0,0,0)
  71.         During = false
  72.     end
  73. end
  74. Value.Changed:connect(Changed)
  75. Changed()
  76.  
  77. function Fling(part,damage)
  78.     local BodyThrust = Instance.new("BodyThrust",part)
  79.     BodyThrust.Force = Vector3.new(0,2 * (Value.Value * (damage / 5)),1 * (Value.Value * (damage / 5)))
  80.     delay(0.05,function()
  81.         if BodyThrust then
  82.             BodyThrust:Destroy()
  83.         end
  84.     end)
  85. end
  86. function HealthChanged(NewHealth)
  87.     if Halt or Humanoid:GetState() == Enum.HumanoidStateType.Dead then return end
  88.     Halt = true
  89.     Humanoid.MaxHealth = 200
  90.     Value.Value = math.max(0,Value.Value + (100 - NewHealth))
  91.     if 100 > NewHealth then
  92.         if Value.Value > 500 then
  93.             Humanoid.Sit = true
  94.         end
  95.         local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso") or Character:FindFirstChild("HumanoidRootPart")
  96.         if Torso then
  97.             Fling(Torso,100 - NewHealth)
  98.         else
  99.             local Torso = Humanoid.RootPart
  100.             if Torso then
  101.                 Fling(Torso,100 - NewHealth)
  102.             end
  103.         end
  104.     end
  105.     Humanoid.Health = 100
  106.     Halt = false
  107. end
  108. Humanoid.HealthChanged:connect(HealthChanged)
  109. function ChildAdded(item)
  110.     if Halt2 then return end
  111.     Halt2 = true
  112.     if HeldTag then
  113.         HeldTag:Destroy()
  114.     end
  115.     if item.Name == "creator" then
  116.         HeldTag = item:Clone()
  117.     end
  118.     Halt2 = false
  119. end
  120. Humanoid.ChildAdded:connect(ChildAdded)
  121.  
  122. function Died()
  123.     if Sound then
  124.         Sound:Play()
  125.     end
  126.     Value.Value = 999990
  127.     local D = Character:GetDescendants()
  128.     for i = 1,#D do
  129.         if D[i]:IsA("BasePart") and D[i]:FindFirstAncestorWhichIsA("Tool") == nil then
  130.             D[i].Anchored = true
  131.             D[i].Transparency = 1
  132.             if D[i] == Humanoid.RootPart then
  133.                 local Attachment = Instance.new("Attachment",Humanoid.RootPart)
  134.                 Attachment.Rotation = -Humanoid.RootPart.Rotation
  135.                 local ParticleEmitter = Instance.new("ParticleEmitter",Attachment)
  136.                 ParticleEmitter.Enabled = false
  137.                 ParticleEmitter.Texture = "rbxasset://textures/particles/fire_main.dds"
  138.                 ParticleEmitter.LightEmission = 0.8
  139.                 ParticleEmitter.Color = ColorSequence.new(Color)
  140.                 ParticleEmitter.Size = NumberSequence.new(5,25)
  141.                 ParticleEmitter.Transparency = NumberSequence.new(0,1)
  142.                 ParticleEmitter.Lifetime = NumberRange.new(1.5)
  143.                 ParticleEmitter.Rate = 500
  144.                 ParticleEmitter.Rotation = NumberRange.new(-360,360)
  145.                 ParticleEmitter.Speed = NumberRange.new(0,0)
  146.                 ParticleEmitter.EmissionDirection = Enum.NormalId.Top
  147.                 ParticleEmitter:Emit(15)
  148.             end
  149.         end
  150.     end
  151. end
  152. Humanoid.Died:connect(Died)
  153. while Humanoid:GetState() ~= Enum.HumanoidStateType.Dead do
  154.     wait(0.01)
  155.     if not During then
  156.         local BodyColor = Character:FindFirstChildWhichIsA("BodyColors")
  157.         if BodyColor ~= nil then
  158.             Color = BodyColor.TorsoColor3
  159.             TL.TextStrokeColor3 = BodyColor.LeftLegColor3
  160.         end
  161.         local Player = game.Players:GetPlayerFromCharacter(Character)
  162.         if Player ~= nil and Player.Neutral == false then
  163.             Color = Player.TeamColor.Color
  164.         end
  165.         TL.TextColor3 = Color
  166.     end
  167.     Changed()
  168.     if Humanoid.RootPart ~= nil and (Humanoid.RootPart.Position.X > 500 or Humanoid.RootPart.Position.X < -500) then
  169.         Value.Value = 999990
  170.         if HeldTag then
  171.             HeldTag.Parent = Humanoid
  172.         end
  173.         Character:BreakJoints()
  174.         local Attachment = Instance.new("Attachment",Humanoid.RootPart)
  175.         Humanoid.RootPart.Rotation = Vector3.new(0,0,0)
  176.         local ParticleEmitter = Instance.new("ParticleEmitter",Attachment)
  177.         ParticleEmitter.Enabled = false
  178.         ParticleEmitter.Texture = "rbxasset://textures/particles/fire_main.dds"
  179.         ParticleEmitter.LightEmission = 0.8
  180.         ParticleEmitter.Color = ColorSequence.new(Color)
  181.         ParticleEmitter.Size = NumberSequence.new(15,0)
  182.         ParticleEmitter.Transparency = NumberSequence.new(0,0.5)
  183.         ParticleEmitter.Lifetime = NumberRange.new(1.5)
  184.         ParticleEmitter.Rate = 500
  185.         ParticleEmitter.Rotation = NumberRange.new(-360,360)
  186.         ParticleEmitter.Speed = NumberRange.new(-500,500)
  187.         ParticleEmitter.EmissionDirection = Enum.NormalId.Left
  188.         ParticleEmitter:Emit(100)
  189.     end
  190.     if Humanoid.RootPart ~= nil and (Humanoid.RootPart.Position.Z > 500 or Humanoid.RootPart.Position.Z < -500) then
  191.         Value.Value = 999990
  192.         if HeldTag then
  193.             HeldTag.Parent = Humanoid
  194.         end
  195.         Character:BreakJoints()
  196.         local Attachment = Instance.new("Attachment",Humanoid.RootPart)
  197.         Humanoid.RootPart.Rotation = Vector3.new(0,0,0)
  198.         local ParticleEmitter = Instance.new("ParticleEmitter",Attachment)
  199.         ParticleEmitter.Enabled = false
  200.         ParticleEmitter.Texture = "rbxasset://textures/particles/fire_main.dds"
  201.         ParticleEmitter.LightEmission = 0.8
  202.         ParticleEmitter.Color = ColorSequence.new(Color)
  203.         ParticleEmitter.Size = NumberSequence.new(15,0)
  204.         ParticleEmitter.Transparency = NumberSequence.new(0,0.5)
  205.         ParticleEmitter.Lifetime = NumberRange.new(1.5)
  206.         ParticleEmitter.Rate = 500
  207.         ParticleEmitter.Rotation = NumberRange.new(-360,360)
  208.         ParticleEmitter.Speed = NumberRange.new(-500,500)
  209.         ParticleEmitter.EmissionDirection = Enum.NormalId.Front
  210.         ParticleEmitter:Emit(100)
  211.     end
  212.     if Humanoid.RootPart ~= nil and (Humanoid.RootPart.Position.Y > 500 or Humanoid.RootPart.Position.Y < -10) then
  213.         Value.Value = 999990
  214.         if HeldTag then
  215.             HeldTag.Parent = Humanoid
  216.         end
  217.         Character:BreakJoints()
  218.         local Attachment = Instance.new("Attachment",Humanoid.RootPart)
  219.         Humanoid.RootPart.Rotation = Vector3.new(0,0,0)
  220.         local ParticleEmitter = Instance.new("ParticleEmitter",Attachment)
  221.         ParticleEmitter.Enabled = false
  222.         ParticleEmitter.Texture = "rbxasset://textures/particles/fire_main.dds"
  223.         ParticleEmitter.LightEmission = 0.8
  224.         ParticleEmitter.Color = ColorSequence.new(Color)
  225.         ParticleEmitter.Size = NumberSequence.new(15,0)
  226.         ParticleEmitter.Transparency = NumberSequence.new(0,0.5)
  227.         ParticleEmitter.Lifetime = NumberRange.new(1.5)
  228.         ParticleEmitter.Rate = 500
  229.         ParticleEmitter.Rotation = NumberRange.new(-360,360)
  230.         ParticleEmitter.Speed = NumberRange.new(-500,500)
  231.         ParticleEmitter.EmissionDirection = Enum.NormalId.Top
  232.         ParticleEmitter:Emit(100)
  233.     end
  234. end
RAW Paste Data