title: Why does the Text not update even when the it should be set by the variable?
body: <pre><code>local DECREASE_FREQUENCY = 1
  local DECREASE_AMOUNT = 2
  game.Players.PlayerAdded:Connect(function(Player)
  
  local Hunger = Instance.new(&quot;IntValue&quot;, Player)
  Hunger.Name = &quot;Hunger&quot;
  Hunger.Value = 100 -- how much hunger a player has max
  
  Player.CharacterAdded:Connect(function()
      Hunger.Value = 100 -- resets each time your player respawns
      
      
      game.StarterGui.Hunger.Bar.TextLabel.Text = (Hunger.Value)
      
  end)
  
  
  while wait(DECREASE_FREQUENCY) do
      -- run the code in here.
      
      
      if Hunger.Value &lt;= 0 then   
          Player.Character:BreakJoints()
      else
          Hunger.Value -= DECREASE_AMOUNT
      end
      Hunger.Value -= DECREASE_FREQUENCY
  end
  
  game.StarterGui.Hunger.Bar.TextLabel.Text = (Hunger.Value)
  </code></pre>
  <p>At this point it should change to a new value as the hunger decreases, but it stays at the value 100? Could anyone explain to me what am doing wrong?</p>