If it's floating text, the text of the floating text is probably changed via a timer. Here's a JASS function that would do such a thing:

JASS:
function DisplayTextPeriodicallyCallback takes nothing returns nothing
local timer T = GetExpiredTimer()
local texttag TargetText = GetAttachedTextTag(T, "Periodic TextTag")
local string Text = GetAttachedString(T, "Periodic Text")
local integer Iteration = GetAttachedInt(T, "Iteration")
local integer Length = StringLength(Text)
set Iteration = Iteration + 1
call SetTextTagText(TargetText, Substring(Text, 1, Iteration))
call AttachInt(T, "Iteration", Iteration)
if Iteration >= Length then
call PauseTimer(T)
call CleanAttachedVars(T)
call DestroyTimer()
endif
set T = null
set Text = ""
set TargetText = null
endfunction
function DisplayTextPeriodically takes texttag TargetText, string Text, real TimeDelay returns nothing
local timer T = CreateTimer()
call AttachObect(T, "Periodic TextTag", TargetText)
call AttachString(T, "Periodic Text", Text)
call AttachInt(T, "Iteration", 1)
call TimerStart(T, TimeDelay, true, function DisplayTextPeriodicallyCallback)
call SetTextTagText(TargetText, Substring(Text, 1, 1))
set T = null
endfunction
You'd have to do something a bit more complicated if the text contained color codes, and that code leaks strings (nothing to do about that).