--//Controller//--

RunService.RenderStepped:Connect(function()
	TweenService:Create(
		Display,
		
		TweenInfo.new(
			0.25
		),
		
		{
			Size = UDim2.new(1 * Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)
		}
	):Play()
	
	Status.Text = math.floor(Humanoid.Health).." / "..Humanoid.MaxHealth
	
	if Humanoid.Health <= Humanoid.MaxHealth and Humanoid.Health > Humanoid.MaxHealth * 50 / 100 then
		Display.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
		
	elseif Humanoid.Health <= Humanoid.MaxHealth * 50 / 100 and Humanoid.Health > Humanoid.MaxHealth * 25 / 100 then
		Display.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
		
	elseif Humanoid.Health <= Humanoid.MaxHealth * 25 / 100 then
		Display.BackgroundColor3 = Color3.fromRGB(170, 0, 0)

	end
end)
