Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --reconvert here: http://www.unit-conversion.info/texttools/ascii/#data
- --test the script here: https://rextester.com/l/lua_online_compiler
- function byteentirestring(str)
- local kek = {}
- for i=1,#str do
- local i = (string.len(str) - i) + 1
- hec = string.sub(str,i,i)
- hec = string.byte(hec)
- table.insert(kek,1,hec)
- end
- return kek
- end
- strin = "Baby shark, doo doo doo doo doo doo\nBaby shark, doo doo doo doo doo doo\nBaby shark, doo doo doo doo doo doo\nBaby shark!\nMommy shark, doo doo doo doo doo doo\nMommy shark, doo doo doo doo doo doo\nMommy shark, doo doo doo doo doo doo\nMommy shark!\nDaddy shark, doo doo doo doo doo doo\nDaddy shark, doo doo doo doo doo doo\nDaddy shark, doo doo doo doo doo doo\nDaddy shark!\nGrandma shark, doo doo doo doo doo doo\nGrandma shark, doo doo doo doo doo doo\nGrandma shark, doo doo doo doo doo doo\nGrandma shark!\nGrandpa shark, doo doo doo doo doo doo\nGrandpa shark, doo doo doo doo doo doo\nGrandpa shark, doo doo doo doo doo doo\nGrandpa shark!\nLet's go hunt, doo doo doo doo doo doo\nLet's go hunt, doo doo doo doo doo doo\nLet's go hunt, doo doo doo doo doo doo\nLet's go hunt!\nRun away, doo doo doo doo doo doo\nRun away, doo doo doo doo doo doo\nRun away, doo doo doo doo doo doo\nRun away!\nSafe at last, doo doo doo doo doo doo\nSafe at last, doo doo doo doo doo doo\nSafe at last, doo doo doo doo doo doo\nSafe at last!\nIt's the end, doo doo doo doo doo doo\nIt's the end, doo doo doo doo doo doo\nIt's the end, doo doo doo doo doo doo\nIt's the end!"
- heck = byteentirestring(strin)
- strn = ""
- for i=1,#heck do
- yes = false
- local kek = heck[i]
- if kek < 100 then yes = true end
- kek = tostring(kek)
- if yes == true then
- kek = "0"..kek
- else
- kek = kek
- end
- strn = strn..kek.." "
- end
- print(strn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement