Hunger regen script not working?

So in my game, their is a hunger system, but I basically want it to to give me full hunger every 10 seconds, but the script is not working, any help? There is no output errors.

game.Players.PlayerAdded:Connect(function(player)

if player.Name == "Pooglies" then

while true do

player:WaitForChild("Info"):WaitForChild("Hunger").Value = 100

wait(10)

end

end

end)

try printing the Hunger value after each time it sets it to 100. everything should be working fine unless you miss typed something. Also please indent your code correctly, so it is easier to read.

(Also make sure this is server-sided, even though I believe you have it server-sided, just a reminder).