-- Made by the owner of Kiwami Development

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
