Fading Text

How would I make fading text? For example:
You have a table of names, and every 5 seconds it will change names. But each name will fade in/out.

[lua]local alpha = 0;
local inc = true;
hook.Add(“HUDPaint”,“FadeText”,function()
if alpha == 255 or alpha == 0 then inc = !inc; end
alpha = inc and alpha + 1 or alpha - 1;
draw.DrawText(“Hello, Transparency”,“ScoreboardText”,10,10,Color(255,255,255,alpha),0)
end)[/lua]

Something like that. This particular example changes the alpha based on the framerate – you might want to change the alpha in a Think hook or Tick hook to ensure consistency beyond the player’s framerate.