Splitting large number into multiple smaller numbers

I don’t really know how to put this, but this should be about right:

I want to split a long binary string (e.g. 0000110101110101) into a bunch of smaller strings (so 00 00 11 01 01 11 01 01 instead)
I don’t know what else to add to this; that’s about it

local BinaryString = "0000110101110101"

for Pair in string.gmatch(BinaryString, "..") do
    print(Pair)
end
1 Like

Thanks for the quick response, works great!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.