Hello, I am a very young but good developer. I am gud at scripting and gui design.
Here's some sample code. Pretty basic, :p
Sample code:
local module = {}
function module.GetWords(text)
local words = {}
local maxcharacters = 100000
local word = ""
for i = #text, 0, -1 do
local char = string.sub(text,i,i)
if char == " " then
text = string.gsub(text, " ", "")
else
break
end
end
for i = 1, #text do
local char = string.sub(text,i,i)
if i == #text then
word = word..char
table.insert(words,#words+1,word)
elseif char ~= " " then
word = word..char
elseif char == " " and string.sub(text,math.clamp(i-1,1,maxcharacters),math.clamp(i-1,1,maxcharacters)) ~= " " then
table.insert(words,#words+1,word)
word = ""
end
end
return words
end
return module