Announcement

Collapse
No announcement yet.

Can someone explain this script to me?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can someone explain this script to me?

    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

  • #2
    Code:
    [ATTACH]n307238[/ATTACH]

    Comment


    • #3
      Sorry!!
      Is This:

      TEST.apz

      Comment

      Working...
      X