Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Sliding GUI Text is out of place - help?

Asked by 11 years ago

Hello! I'm making a Sliding GUI Text that will be synced with my website. However, the problem is, is that obviously because when there is a lot of text, the text is positioned somewhere else or it cuts off part of it. Is there a way to fix that? Currently I have this:

01place = "Place1"
02 
03function explode(str, separator, withpattern) -- credit: https://code.google.com/p/divranspack/source/browse/trunk/+divranspack/Non+Gmod+Things/Minecraft+Lua+Server/luadriver/string.lua?r=475
04        if separator == "" then
05                local ret = {}
06                for i=1,#str do
07                        ret[i] = string.sub(str,i,i)
08                end
09                return ret
10        end
11    local ret = {}
12    local index,lastPosition = 1,1
13    if not withpattern then separator = string.gsub( separator, "[%-%^%$%(%)%%%.%[%]%*%+%?]", "%%%1" ) end
14    for startPosition,endPosition in string.gmatch( str, "()" .. separator.."()" ) do
15        ret[index] = string.sub( str, lastPosition, startPosition-1)
View all 89 lines...

Does anyone know something like a mathematical formulae for a sliding text GUI that is properly positioned? Thank you.

Answer this question