local T=script.Parent.Overhaul.Vida local B=script.Parent.Overhaul.Consciente local O=script.Parent.Overhaul.Dor local u=script.Parent.Overhaul.Ferido local F=script.Parent.Overhaul.Sangrando local L=TS:Create(F,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,-1,true),{TextColor3=Color3.fromRGB(255,0,0)})RS.RenderStepped:connect(function()if script.Parent.Visible==true then if Target.Value~="\078\047\065"then local T=game.Players:FindFirstChild(Target.Value)local B=T.Character.Humanoid local O=T.Character.Saude.Variaveis.Sangue local u=B.Health/B.MaxHealth script.Parent.Menu.Base.VidaBar.Sangue.Size=UDim2.new(1,0,-u,0)local F=O.Value/O.MaxValue script.Parent.Menu.Base.SangueBar.Sangue.Size=UDim2.new(1,0,-F,0)else local T=Human.Health/Human.MaxHealth script.Parent.Menu.Base.VidaBar.Sangue.Size=UDim2.new(1,0,-T,0)local B=Saude.Variaveis.Sangue.Value/Saude.Variaveis.Sangue.MaxValue script.Parent.Menu.Base.SangueBar.Sangue.Size=UDim2.new(1,0,-B,0)end if Target.Value=="\078\047\065"then if Human.Health<=0 then T.Text="\068\101\097\100"T.TextColor3=Color3.fromRGB(255,0,0)elseif Human.Health<=Human.MaxHealth*.5 then T.Text="\072\105\103\104 \082\105\115\107"T.TextColor3=Color3.fromRGB(255,0,0)elseif Human.Health<=Human.MaxHealth*.75 then T.Text="\076\111\119 \082\105\115\107"T.TextColor3=Color3.fromRGB(255,255,0)elseif Human.Health<=Human.MaxHealth then T.Text="\072\101\097\108\116\104\121"T.TextColor3=Color3.fromRGB(255,255,255)end if Saude.Stances.Caido.Value==true then B.Text="\085\110\099\111\110\115\099\105\111\117\115"else B.Text="\067\111\110\115\099\105\111\117\115"end if Saude.Variaveis.Dor.Value<=0 then O.Text="\078\111 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,255,255)elseif Saude.Variaveis.Dor.Value<=25 then O.Text="\077\105\110\111\114 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,255,255)elseif Saude.Variaveis.Dor.Value<100 then O.Text="\077\097\106\111\114 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,255,0)elseif Saude.Variaveis.Dor.Value>=100 then O.Text="\069\120\116\114\101\109\101 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,0,0)end if Saude.Stances.Ferido.Value==true then u.Visible=true else u.Visible=false end if Saude.Stances.Sangrando.Value==true or Saude.Stances.Tourniquet.Value==true then if Saude.Stances.Tourniquet.Value==true then F.Text="\084\111\117\114\110\105\113\117\101\116"else F.Text="\066\108\101\101\100\105\110\103"end F.Visible=true F.TextColor3=Color3.fromRGB(255,255,255)L:Play()else F.Visible=false L:Cancel()end else local h=game.Players:FindFirstChild(Target.Value)local H=h.Character.Humanoid local x=h.Character.Saude if H.Health>0 then if H.Health<=0 then T.Text="\068\101\097\100"T.TextColor3=Color3.fromRGB(255,0,0)elseif H.Health<=H.MaxHealth*.5 then T.Text="\072\105\103\104 \082\105\115\107"T.TextColor3=Color3.fromRGB(255,0,0)elseif H.Health<=H.MaxHealth*.75 then T.Text="\076\111\119 \082\105\115\107"T.TextColor3=Color3.fromRGB(255,255,0)elseif H.Health<=H.MaxHealth then T.Text="\072\101\097\108\116\104\121"T.TextColor3=Color3.fromRGB(255,255,255)end if x.Stances.Caido.Value==true then B.Text="\085\110\099\111\110\115\099\105\111\117\115"else B.Text="\067\111\110\115\099\105\111\117\115"end if x.Variaveis.Dor.Value<=0 then O.Text="\078\111 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,255,255)elseif x.Variaveis.Dor.Value<=25 then O.Text="\077\105\110\111\114 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,255,255)elseif x.Variaveis.Dor.Value<100 then O.Text="\077\097\106\111\114 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,255,0)elseif x.Variaveis.Dor.Value>=100 then O.Text="\069\120\116\114\101\109\101 \112\097\105\110"O.TextColor3=Color3.fromRGB(255,0,0)end if x.Stances.Ferido.Value==true then u.Visible=true else u.Visible=false end if x.Stances.Sangrando.Value==true or x.Stances.Tourniquet.Value==true then if x.Stances.Tourniquet.Value==true then F.Text="\084\111\117\114\110\105\113\117\101\116"else F.Text="\066\108\101\101\100\105\110\103"end F.Visible=true F.TextColor3=Color3.fromRGB(255,255,255)L:Play()else F.Visible=false L:Cancel()end else Reset:FireServer()end end end end)

local Vida = script.Parent.Overhaul.Vida
local Consciente = script.Parent.Overhaul.Consciente
local Dor = script.Parent.Overhaul.Dor
local Ferido = script.Parent.Overhaul.Ferido
local Sangrando = script.Parent.Overhaul.Sangrando

local BleedTween = TS:Create(Sangrando, TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,-1,true), {TextColor3 =  Color3.fromRGB(255, 0, 0)} )

RS.RenderStepped:connect(function()
	if script.Parent.Visible == true then
		
	if Target.Value ~= "N/A" then

		local player = game.Players:FindFirstChild(Target.Value)	
		local vHuman = player.Character.Humanoid
		local vSang = player.Character.Saude.Variaveis.Sangue
	
		local pie = (vHuman.Health / vHuman.MaxHealth)
		script.Parent.Menu.Base.VidaBar.Sangue.Size = UDim2.new(1, 0, -pie, 0)

		local Pizza = (vSang.Value / vSang.MaxValue)
		script.Parent.Menu.Base.SangueBar.Sangue.Size = UDim2.new(1, 0, -Pizza, 0)

	else

		local pie = (Human.Health / Human.MaxHealth)
		script.Parent.Menu.Base.VidaBar.Sangue.Size = UDim2.new(1, 0, -pie, 0)

		local Pizza = (Saude.Variaveis.Sangue.Value / Saude.Variaveis.Sangue.MaxValue)
		script.Parent.Menu.Base.SangueBar.Sangue.Size = UDim2.new(1, 0, -Pizza, 0)

	end
		
		
		if Target.Value == "N/A" then
			if Human.Health <= 0 then
				Vida.Text = "Dead"
				Vida.TextColor3 = Color3.fromRGB(255,0,0)
			elseif Human.Health <= (Human.MaxHealth * .5) then
				Vida.Text = "High Risk"
				Vida.TextColor3 = Color3.fromRGB(255,0,0)
			elseif Human.Health <= (Human.MaxHealth * .75) then
				Vida.Text = "Low Risk"
				Vida.TextColor3 = Color3.fromRGB(255,255,0)
			elseif Human.Health <= (Human.MaxHealth) then
				Vida.Text = "Healthy"
				Vida.TextColor3 = Color3.fromRGB(255,255,255)
			end
		
			if Saude.Stances.Caido.Value == true then
				Consciente.Text = "Unconscious"
			else
				Consciente.Text = "Conscious"
			end

			if Saude.Variaveis.Dor.Value <= 0 then
				Dor.Text = "No pain"
				Dor.TextColor3 = Color3.fromRGB(255,255,255)
			elseif Saude.Variaveis.Dor.Value <= 25 then
				Dor.Text = "Minor pain"
				Dor.TextColor3 = Color3.fromRGB(255,255,255)
			elseif Saude.Variaveis.Dor.Value < 100 then
				Dor.Text = "Major pain"
				Dor.TextColor3 = Color3.fromRGB(255,255,0)
			elseif Saude.Variaveis.Dor.Value >= 100 then
				Dor.Text = "Extreme pain"
				Dor.TextColor3 = Color3.fromRGB(255,0,0)
			end


			if Saude.Stances.Ferido.Value == true then
				Ferido.Visible = true
			else
				Ferido.Visible = false
			end

			if Saude.Stances.Sangrando.Value == true or Saude.Stances.Tourniquet.Value == true then
				if Saude.Stances.Tourniquet.Value == true then
					Sangrando.Text = 'Tourniquet'
				else
					Sangrando.Text = 'Bleeding'
				end
				Sangrando.Visible = true
				Sangrando.TextColor3 = Color3.fromRGB(255,255,255)
				BleedTween:Play()
			else
				Sangrando.Visible = false
				BleedTween:Cancel()
			end
		
		else
			local player2 = game.Players:FindFirstChild(Target.Value)
			local PlHuman = player2.Character.Humanoid
			local PlSaude = player2.Character.Saude
			if PlHuman.Health > 0 then
			if PlHuman.Health <= 0 then
				Vida.Text = "Dead"
				Vida.TextColor3 = Color3.fromRGB(255,0,0)
			elseif PlHuman.Health <= (PlHuman.MaxHealth * .5) then
				Vida.Text = "High Risk"
				Vida.TextColor3 = Color3.fromRGB(255,0,0)
			elseif PlHuman.Health <= (PlHuman.MaxHealth * .75) then
				Vida.Text = "Low Risk"
				Vida.TextColor3 = Color3.fromRGB(255,255,0)
			elseif PlHuman.Health <= (PlHuman.MaxHealth) then
				Vida.Text = "Healthy"
				Vida.TextColor3 = Color3.fromRGB(255,255,255)
			end

			if PlSaude.Stances.Caido.Value == true then
				Consciente.Text = "Unconscious"
			else
				Consciente.Text = "Conscious"
			end
	
			if PlSaude.Variaveis.Dor.Value <= 0 then
				Dor.Text = "No pain"
				Dor.TextColor3 = Color3.fromRGB(255,255,255)
			elseif PlSaude.Variaveis.Dor.Value <= 25 then
				Dor.Text = "Minor pain"
				Dor.TextColor3 = Color3.fromRGB(255,255,255)
			elseif PlSaude.Variaveis.Dor.Value < 100 then
				Dor.Text = "Major pain"
				Dor.TextColor3 = Color3.fromRGB(255,255,0)
			elseif PlSaude.Variaveis.Dor.Value >= 100 then
				Dor.Text = "Extreme pain"
				Dor.TextColor3 = Color3.fromRGB(255,0,0)
			end
	
			if PlSaude.Stances.Ferido.Value == true then
				Ferido.Visible = true
			else
				Ferido.Visible = false
			end
	
			if PlSaude.Stances.Sangrando.Value == true or PlSaude.Stances.Tourniquet.Value == true then
				if PlSaude.Stances.Tourniquet.Value == true then
					Sangrando.Text = 'Tourniquet'
				else
					Sangrando.Text = 'Bleeding'
				end
				Sangrando.Visible = true
				Sangrando.TextColor3 = Color3.fromRGB(255,255,255)
				BleedTween:Play()
			else
				Sangrando.Visible = false
				BleedTween:Cancel()
			end
			else
				Reset:FireServer()
			end
		end
	end

end)