Got back on studio to test something (finally) w/ string patterns, which was to see if GSub would replace commas "," w/ "\0", but when I print the result, it just returns "player" in the Output, and not the rest of the string; as for GMatch, it just keeps returning " 2 GMatch Result (x2)" in the Output, and nothing more, so to check if this was the case, I added another table, labeled tableForSeparation, which would gather the items returned, then be unpacked, but nothing in the Output came up; yes, not even nil appeared in the Output.
No errors were returned, so I have no idea how to fix this, and I'm not familiar w/ string patterns, so I have no idea what's going on. This is the code I'm using:
local String = 'player,player2,player3'
String = string.lower(String)
String = string.gsub(String, '%p', '\0')
print(String) -- player
local tableForSeparation = {}
for i, v in string.gmatch(String, '%z+') do
table.insert(tableForSeparation, v or i)
print(i or 1, v or 2, 'GMatch Result') -- 2 GMatch Result (x2)
end
local UnpackTableForSeparation = unpack(tableForSeparation)
print(UnpackTableForSeparation) -- [Nothing in Output]
What I was trying to accomplish was to see if the strings between the commas would separate, like how in ACs getPlayer functions where they iterate through a string, then have two tables keep track of the positions from between each string that has a comma.

1 comment
Yep, this answered my question! Tyvm! :D Also, nice explanations. :)