repeat wait()until char~=nil while wait()do local p=char.Health local R=p/100 script.Parent.HP.Value=p script.Parent.HealthBar:TweenSize(UDim2.new(R,0,.654,0),"\079\117\116","\081\117\105\110\116",.25)script.Parent.TextLabel.Text="\043 "..script.Parent.HP.Value script.Parent.PlayerLabel.Text=plr.DisplayName if p<=5 then script.Parent.HealthBar.BackgroundColor3=Color3.fromRGB(94,0,0)script.Parent.TextLabel.TextColor3=Color3.fromRGB(94,0,0)script.Parent.PlayerLabel.TextColor3=Color3.fromRGB(94,0,0)script.Parent.HP.Value="\053"elseif p<=20 then script.Parent.HealthBar.BackgroundColor3=Color3.fromRGB(255,0,0)script.Parent.TextLabel.TextColor3=Color3.fromRGB(255,0,0)script.Parent.PlayerLabel.TextColor3=Color3.fromRGB(255,0,0)script.Parent.HP.Value="\050\048"elseif p<=50 then script.Parent.HealthBar.BackgroundColor3=Color3.fromRGB(255,85,0)script.Parent.TextLabel.TextColor3=Color3.fromRGB(255,85,0)script.Parent.PlayerLabel.TextColor3=Color3.fromRGB(255,85,0)script.Parent.HP.Value="\053\048"elseif p<=75 then script.Parent.HealthBar.BackgroundColor3=Color3.fromRGB(255,183,0)script.Parent.TextLabel.TextColor3=Color3.fromRGB(255,183,0)script.Parent.PlayerLabel.TextColor3=Color3.fromRGB(255,183,0)script.Parent.HP.Value="\055\053"elseif p>75 then script.Parent.HealthBar.BackgroundColor3=Color3.fromRGB(0,200,255)script.Parent.TextLabel.TextColor3=Color3.fromRGB(0,200,255)script.Parent.PlayerLabel.TextColor3=Color3.fromRGB(0,200,255)script.Parent.HP.Value="\055\053"end if p==0 then script.Parent.HP.Value="\048"end end function HealthChanged(p) end char.HealthChanged:connect(HealthChanged)if error then script:reload()end

repeat wait() until char ~= nil

while wait() do
	local health = char.Health
	local f = health/100
	script.Parent.HP.Value = health
	script.Parent.HealthBar:TweenSize(UDim2.new(f,0,0.654,0),"Out","Quint",0.25)
	script.Parent.TextLabel.Text = "+ "..script.Parent.HP.Value
	script.Parent.PlayerLabel.Text = plr.DisplayName

	if health <= 5 then
		script.Parent.HealthBar.BackgroundColor3 = Color3.fromRGB(94, 0, 0)
		script.Parent.TextLabel.TextColor3 = Color3.fromRGB(94, 0, 0)
		script.Parent.PlayerLabel.TextColor3 = Color3.fromRGB(94, 0, 0)
		script.Parent.HP.Value = "5"
	elseif health <= 20 then
		script.Parent.HealthBar.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
		script.Parent.TextLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
		script.Parent.PlayerLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
		script.Parent.HP.Value = "20"
	elseif health <= 50 then
		script.Parent.HealthBar.BackgroundColor3 = Color3.fromRGB(255, 85, 0)
		script.Parent.TextLabel.TextColor3 = Color3.fromRGB(255, 85, 0)
		script.Parent.PlayerLabel.TextColor3 = Color3.fromRGB(255, 85, 0)
		script.Parent.HP.Value = "50"
	elseif health <= 75 then
		script.Parent.HealthBar.BackgroundColor3 = Color3.fromRGB(255, 183, 0)
		script.Parent.TextLabel.TextColor3 = Color3.fromRGB(255, 183, 0)
		script.Parent.PlayerLabel.TextColor3 = Color3.fromRGB(255, 183, 0)
		script.Parent.HP.Value = "75"
	elseif health > 75 then
		script.Parent.HealthBar.BackgroundColor3 = Color3.fromRGB(0, 200, 255)
		script.Parent.TextLabel.TextColor3 = Color3.fromRGB(0, 200, 255)
		script.Parent.PlayerLabel.TextColor3 = Color3.fromRGB(0, 200, 255)
		script.Parent.HP.Value = "75"	
	end
	if health == 0 then
		script.Parent.HP.Value = "0"
	end
end

function HealthChanged(health)
end

char.HealthChanged:connect(HealthChanged)

if error then
	script:reload()
end
