Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local codes = { -- if any unicode wizards know a better way of doing this lmk
- A = '🇦',
- B = '🇧',
- C = '🇨',
- D = '🇩',
- E = '🇪',
- F = '🇫',
- G = '🇬',
- H = '🇭',
- I = '🇮',
- J = '🇯',
- K = '🇰',
- L = '🇱',
- M = '🇲',
- N = '🇳',
- O = '🇴',
- P = '🇵',
- Q = '🇶',
- R = '🇷',
- S = '🇸',
- T = '🇹',
- U = '🇺',
- V = '🇻',
- W = '🇼',
- X = '🇽',
- Y = '🇾',
- Z = '🇿'
- }
- return function(countryCode)
- local mergingCodes = {}
- for index = 1, #countryCode do
- local letter = string.upper(countryCode:sub(index, index))
- table.insert(mergingCodes, codes[letter])
- end
- return table.concat(mergingCodes, '')
- end
- -- worth noting that the flag emojis may not appear unless they're actually placed on a gui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement