I have this script, I created it to pass the time. can someone can me Explain?:
Code:
B = Input.GetText("Input1"); if B ~= "" then for k,v in pairs(String.Split(B,"@echo ")) do token = B tokenTbl = {} for j in string.gmatch(token, "(.-)@echo ") do if j ~= "" then table.insert(tokenTbl, j); end for k,v in pairs(String.Split(B,"@clos ")) do for j in string.gmatch(token, "(.-)@clos ") do if (j ~= "") then table.insert(tokenTbl, j); end end end end for count = 1, Table.Count(tokenTbl) do if (count == 1) then Paragraph.SetText("Paragraph1", tokenTbl[1]); elseif (count == 2) then Paragraph.SetText("Paragraph1", tokenTbl[1]..tokenTbl[2]); elseif (count == 3) then Paragraph.SetText("Paragraph1", tokenTbl[1]..tokenTbl[2]..tokenTbl[3]); elseif (count == 4) then Paragraph.SetText("Paragraph1", tokenTbl[1]..tokenTbl[2]..tokenTbl[3]..tokenTbl[4]); elseif (count == 5) then Paragraph.SetText("Paragraph1", tokenTbl[1]..tokenTbl[2]..tokenTbl[3]..tokenTbl[4]..tokenTbl[5]); end end -- tokenTbl[1]..tokenTbl[2]..tokenTbl[3]..tokenTbl[4]..tokenTbl[5] end end
Comment