When you buy gamepass you have 100 more health, but when your in the game your health is half? How come?

gps = game:GetService("GamePassService");

id = script:WaitForChild("GamePassID"); EH = script:WaitForChild("ExtraHealthAmount");

game.Workspace.ChildAdded:connect(function(char) h=char:FindFirstChild("Humanoid") if h~=nil then plr=game.Players:FindFirstChild(char.Name) if gps:PlayerHasPass(plr, id.Value) then h.MaxHealth=EH.Value h.Health=EH.Value end end end)

I also placed two IntValues, that say ExtraHealthAmount, and GamePassID