Issue with max health addition

Can someone explain to me why this script doesn’t add max health to my humanoid? Script itself is working because it was printing, but the line where it’s supposed to give me a 10+ max health doesn’t work.

Script:

local char = script.Parent
local hum = char:WaitForChild("Humanoid")

local Ability = char.Ability

while wait(1) do
	if Ability.Value == true then
		if hum.MaxHealth < 450 then

			hum.MaxHealth = hum.MaxHealth + 10

		end
	end
end

Nevermind, I finally found out why.

Good idea to post your solution so others can learn.