Assuming you mean text that is hovering over an object:
This text is specified by calling llSetText , but the corresponding llGetText does not exist. Instead, you can use llGetPrimitiveParams with the constant PRIM_TEXT, for example:
list params = llGetPrimitiveParams([PRIM_TEXT]);
string text = llList2String(params, 0);
source
share