Depending on what you want to do but adjusting the start number seems to defeat the purpose of the loop
either just:
Lua Code:
local text = MyGameTooltipTextRight2:GetText()
if text then
print(text)
end
or, if there might be something you want in position 1 or position x, check all TextRights:
Lua Code:
local n = 1 --start from 1
while _G["MyGameTooltipTextRight"..n] do
local text = _G["MyGameTooltipTextRight"..n]:GetText()
if text then
print(n, text)
end
n = n + 1
end