Emojis not showing

I am trying to make an emoji list for my game and I have made a script to make text labels that show all the emojis. The problem is, the emojis look like this

rsz_1robloxscreenshot20210808_134648474

But when I type the emojis in the text label myself, everything is fine.

Here is the script (client-sided)

list = "๐Ÿ˜๐Ÿ˜‚๐Ÿ˜ƒ๐Ÿ˜„๐Ÿ˜…๐Ÿ˜†๐Ÿ˜‰๐Ÿ˜Š๐Ÿ˜‹๐Ÿ˜Œ๐Ÿ˜๐Ÿ˜๐Ÿ˜’๐Ÿ˜“๐Ÿ˜”๐Ÿ˜–๐Ÿ˜˜๐Ÿ˜š๐Ÿ˜œ๐Ÿ˜๐Ÿ˜ž๐Ÿ˜ ๐Ÿ˜ก๐Ÿ˜ข๐Ÿ˜ฃ๐Ÿ˜ค๐Ÿ˜ฅ๐Ÿ˜จ๐Ÿ˜ฉ๐Ÿ˜ช๐Ÿ˜ซ๐Ÿ˜ญ๐Ÿ˜ฐ๐Ÿ˜ฑ๐Ÿ˜ฒ๐Ÿ˜ณ๐Ÿ˜ต๐Ÿ˜ท๐Ÿ˜ธ๐Ÿ˜น๐Ÿ˜บ๐Ÿ˜ป๐Ÿ˜ผ๐Ÿ˜ฝ๐Ÿ˜พ๐Ÿ˜ฟ๐Ÿ™€๐Ÿ™…๐Ÿ™†๐Ÿ™‡๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š๐Ÿ™‹๐Ÿ™Œ๐Ÿ™๐Ÿ™Ž๐Ÿ™โœ‚โœ…โœˆโœ‰โœŠโœ‹โœŒโœโœ’โœ”โœ–โœจโœณโœดโ„โ‡โŒโŽโ“โ”โ•โ—โคโž•โž–โž—โžกโžฐ๐Ÿš€๐Ÿšƒ๐Ÿš„๐Ÿš…๐Ÿš‡๐Ÿš‰๐ŸšŒ๐Ÿš๐Ÿš‘๐Ÿš’๐Ÿš“๐Ÿš•๐Ÿš—๐Ÿš™๐Ÿšš๐Ÿšข๐Ÿšค๐Ÿšฅ๐Ÿšง๐Ÿšจ๐Ÿšฉ๐Ÿšช๐Ÿšซ๐Ÿšฌ๐Ÿšญ๐Ÿšฒ๐Ÿšถ๐Ÿšน๐Ÿšบ๐Ÿšป๐Ÿšผ๐Ÿšฝ๐Ÿšพ๐Ÿ›€โ“‚๐Ÿ…ฐ๐Ÿ…ฑ๐Ÿ…พ๐Ÿ…ฟ๐Ÿ†Ž๐Ÿ†‘๐Ÿ†’๐Ÿ†“๐Ÿ†”๐Ÿ†•๐Ÿ†–๐Ÿ†—๐Ÿ†˜๐Ÿ†™๐Ÿ†š๐Ÿ‡ฉ๐Ÿ‡ช๐Ÿ‡ฉ๐Ÿ‡ช๐Ÿ‡ฉ๐Ÿ‡ช๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡จ๐Ÿ‡ณ๐Ÿ‡จ๐Ÿ‡ณ๐Ÿ‡จ๐Ÿ‡ณ๐Ÿ‡ฏ๐Ÿ‡ต๐Ÿ‡ฏ๐Ÿ‡ต๐Ÿ‡ฏ๐Ÿ‡ต๐Ÿ‡ฐ๐Ÿ‡ท๐Ÿ‡ฐ๐Ÿ‡ท๐Ÿ‡ฐ๐Ÿ‡ท๐Ÿ‡ซ๐Ÿ‡ท๐Ÿ‡ซ๐Ÿ‡ท๐Ÿ‡ซ๐Ÿ‡ท๐Ÿ‡ช๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ๐Ÿ‡ช๐Ÿ‡ธ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ‡ท๐Ÿ‡บ๐Ÿ‡ท๐Ÿ‡บ๐Ÿ‡ท๐Ÿ‡บ๐Ÿˆ๐Ÿˆ‚๐Ÿˆš๐Ÿˆฏ๐Ÿˆฒ๐Ÿˆณ๐Ÿˆด๐Ÿˆต๐Ÿˆถ๐Ÿˆท๐Ÿˆธ๐Ÿˆน๐Ÿˆบ๐Ÿ‰๐Ÿ‰‘ยฉยฎโ€ผโ‰#โƒฃ#โƒฃ#โƒฃโ„ขโ„นโ†”โ†•โ†–โ†—โ†˜โ†™โ†ฉโ†ชโŒšโŒ›โฉโชโซโฌโฐโณโ–ชโ–ซโ–ถโ—€โ—ปโ—ผโ—ฝโ—พโ˜€โ˜โ˜Žโ˜‘โ˜”โ˜•โ˜โ˜บโ™ˆโ™‰โ™Šโ™‹โ™Œโ™โ™Žโ™โ™โ™‘โ™’โ™“โ™ โ™ฃโ™ฅโ™ฆโ™จโ™ปโ™ฟโš“โš โšกโšชโšซโšฝโšพโ›„โ›…โ›Žโ›”โ›ชโ›ฒโ›ณโ›ตโ›บโ›ฝโคดโคตโฌ…โฌ†โฌ‡โฌ›โฌœโญโญ•ใ€ฐใ€ฝใŠ—ใŠ™๐Ÿ€„๐Ÿƒ๐ŸŒ€๐ŸŒ๐ŸŒ‚๐ŸŒƒ๐ŸŒ„๐ŸŒ…๐ŸŒ†๐ŸŒ‡๐ŸŒˆ๐ŸŒ‰๐ŸŒŠ๐ŸŒ‹๐ŸŒŒ๐ŸŒ๐ŸŒ‘๐ŸŒ“๐ŸŒ”๐ŸŒ•๐ŸŒ™๐ŸŒ›๐ŸŒŸ๐ŸŒ ๐ŸŒฐ๐ŸŒฑ๐ŸŒด๐ŸŒต๐ŸŒท๐ŸŒธ๐ŸŒน๐ŸŒบ๐ŸŒป๐ŸŒผ๐ŸŒฝ๐ŸŒพ๐ŸŒฟ๐Ÿ€๐Ÿ๐Ÿ‚๐Ÿƒ๐Ÿ„๐Ÿ…๐Ÿ†๐Ÿ‡๐Ÿˆ๐Ÿ‰๐ŸŠ๐ŸŒ๐Ÿ๐ŸŽ๐Ÿ๐Ÿ‘๐Ÿ’๐Ÿ“๐Ÿ”๐Ÿ•๐Ÿ–๐Ÿ—๐Ÿ˜๐Ÿ™๐Ÿš๐Ÿ›๐Ÿœ๐Ÿ๐Ÿž๐ŸŸ๐Ÿ ๐Ÿก๐Ÿข๐Ÿฃ๐Ÿค๐Ÿฅ๐Ÿฆ๐Ÿง๐Ÿจ๐Ÿฉ๐Ÿช๐Ÿซ๐Ÿฌ๐Ÿญ๐Ÿฎ๐Ÿฏ๐Ÿฐ๐Ÿฑ๐Ÿฒ๐Ÿณ๐Ÿด๐Ÿต๐Ÿถ๐Ÿท๐Ÿธ๐Ÿน๐Ÿบ๐Ÿป๐ŸŽ€๐ŸŽ๐ŸŽ‚๐ŸŽƒ๐ŸŽ„๐ŸŽ…๐ŸŽ†๐ŸŽ‡๐ŸŽˆ๐ŸŽ‰๐ŸŽŠ๐ŸŽ‹๐ŸŽŒ๐ŸŽ๐ŸŽŽ๐ŸŽ๐ŸŽ๐ŸŽ‘๐ŸŽ’๐ŸŽ“๐ŸŽ ๐ŸŽก๐ŸŽข๐ŸŽฃ๐ŸŽค๐ŸŽฅ๐ŸŽฆ๐ŸŽง๐ŸŽจ๐ŸŽฉ๐ŸŽช๐ŸŽซ๐ŸŽฌ๐ŸŽญ๐ŸŽฎ๐ŸŽฏ๐ŸŽฐ๐ŸŽฑ๐ŸŽฒ๐ŸŽณ๐ŸŽด๐ŸŽต๐ŸŽถ๐ŸŽท๐ŸŽธ๐ŸŽน๐ŸŽบ๐ŸŽป๐ŸŽผ๐ŸŽฝ๐ŸŽพ๐ŸŽฟ๐Ÿ€๐Ÿ๐Ÿ‚๐Ÿƒ๐Ÿ„๐Ÿ†๐Ÿˆ๐ŸŠ๐Ÿ ๐Ÿก๐Ÿข๐Ÿฃ๐Ÿฅ๐Ÿฆ๐Ÿง๐Ÿจ๐Ÿฉ๐Ÿช๐Ÿซ๐Ÿฌ๐Ÿญ๐Ÿฎ๐Ÿฏ๐Ÿฐ๐ŸŒ๐Ÿ๐ŸŽ๐Ÿ‘๐Ÿ’๐Ÿ”๐Ÿ—๐Ÿ˜๐Ÿ™๐Ÿš๐Ÿ›๐Ÿœ๐Ÿ๐Ÿž๐ŸŸ๐Ÿ ๐Ÿก๐Ÿข๐Ÿฃ๐Ÿค๐Ÿฅ๐Ÿฆ๐Ÿง๐Ÿจ๐Ÿฉ๐Ÿซ๐Ÿฌ๐Ÿญ๐Ÿฎ๐Ÿฏ๐Ÿฐ๐Ÿฑ๐Ÿฒ๐Ÿณ๐Ÿด๐Ÿต๐Ÿถ๐Ÿท๐Ÿธ๐Ÿน๐Ÿบ๐Ÿป๐Ÿผ๐Ÿฝ๐Ÿพ๐Ÿ‘€๐Ÿ‘‚๐Ÿ‘ƒ๐Ÿ‘„๐Ÿ‘…๐Ÿ‘†๐Ÿ‘‡๐Ÿ‘ˆ๐Ÿ‘‰๐Ÿ‘Š๐Ÿ‘‹๐Ÿ‘Œ๐Ÿ‘๐Ÿ‘Ž๐Ÿ‘๐Ÿ‘๐Ÿ‘‘๐Ÿ‘’๐Ÿ‘“๐Ÿ‘”๐Ÿ‘•๐Ÿ‘–๐Ÿ‘—๐Ÿ‘˜๐Ÿ‘™๐Ÿ‘š๐Ÿ‘›๐Ÿ‘œ๐Ÿ‘๐Ÿ‘ž๐Ÿ‘Ÿ๐Ÿ‘ ๐Ÿ‘ก๐Ÿ‘ข๐Ÿ‘ฃ๐Ÿ‘ค๐Ÿ‘ฆ๐Ÿ‘ง๐Ÿ‘จ๐Ÿ‘ฉ๐Ÿ‘ช๐Ÿ‘ซ๐Ÿ‘ฎ๐Ÿ‘ฏ๐Ÿ‘ฐ๐Ÿ‘ฑ๐Ÿ‘ฒ๐Ÿ‘ณ๐Ÿ‘ด๐Ÿ‘ต๐Ÿ‘ถ๐Ÿ‘ท๐Ÿ‘ธ๐Ÿ‘น๐Ÿ‘บ๐Ÿ‘ป๐Ÿ‘ผ๐Ÿ‘ฝ๐Ÿ‘พ๐Ÿ‘ฟ๐Ÿ’€๐Ÿ’๐Ÿ’‚๐Ÿ’ƒ๐Ÿ’„๐Ÿ’…๐Ÿ’†๐Ÿ’‡๐Ÿ’ˆ๐Ÿ’‰๐Ÿ’Š๐Ÿ’‹๐Ÿ’Œ๐Ÿ’๐Ÿ’Ž๐Ÿ’๐Ÿ’๐Ÿ’‘๐Ÿ’’๐Ÿ’“๐Ÿ’”๐Ÿ’•๐Ÿ’–๐Ÿ’—๐Ÿ’˜๐Ÿ’™๐Ÿ’š๐Ÿ’›๐Ÿ’œ๐Ÿ’๐Ÿ’ž๐Ÿ’Ÿ๐Ÿ’ ๐Ÿ’ก๐Ÿ’ข๐Ÿ’ฃ๐Ÿ’ค๐Ÿ’ฅ๐Ÿ’ฆ๐Ÿ’ง๐Ÿ’จ๐Ÿ’ฉ๐Ÿ’ช๐Ÿ’ซ๐Ÿ’ฌ๐Ÿ’ฎ๐Ÿ’ฏ๐Ÿ’ฐ๐Ÿ’ฑ๐Ÿ’ฒ๐Ÿ’ณ๐Ÿ’ด๐Ÿ’ต๐Ÿ’ธ๐Ÿ’น๐Ÿ’บ๐Ÿ’ป๐Ÿ’ผ๐Ÿ’ฝ๐Ÿ’พ๐Ÿ’ฟ๐Ÿ“€๐Ÿ“๐Ÿ“‚๐Ÿ“ƒ๐Ÿ“„๐Ÿ“…๐Ÿ“†๐Ÿ“‡๐Ÿ“ˆ๐Ÿ“‰๐Ÿ“Š๐Ÿ“‹๐Ÿ“Œ๐Ÿ“๐Ÿ“Ž๐Ÿ“๐Ÿ“๐Ÿ“‘๐Ÿ“’๐Ÿ““๐Ÿ“”๐Ÿ“•๐Ÿ“–๐Ÿ“—๐Ÿ“˜๐Ÿ“™๐Ÿ“š๐Ÿ“›๐Ÿ“œ๐Ÿ“๐Ÿ“ž๐Ÿ“Ÿ๐Ÿ“ ๐Ÿ“ก๐Ÿ“ข๐Ÿ“ฃ๐Ÿ“ค๐Ÿ“ฅ๐Ÿ“ฆ๐Ÿ“ง๐Ÿ“จ๐Ÿ“ฉ๐Ÿ“ช๐Ÿ“ซ๐Ÿ“ฎ๐Ÿ“ฐ๐Ÿ“ฑ๐Ÿ“ฒ๐Ÿ“ณ๐Ÿ“ด๐Ÿ“ถ๐Ÿ“ท๐Ÿ“น๐Ÿ“บ๐Ÿ“ป๐Ÿ“ผ๐Ÿ”ƒ๐Ÿ”Š๐Ÿ”‹๐Ÿ”Œ๐Ÿ”๐Ÿ”Ž๐Ÿ”๐Ÿ”๐Ÿ”‘๐Ÿ”’๐Ÿ”“๐Ÿ””๐Ÿ”–๐Ÿ”—๐Ÿ”˜๐Ÿ”™๐Ÿ”š๐Ÿ”›๐Ÿ”œ๐Ÿ”๐Ÿ”ž๐Ÿ”Ÿ๐Ÿ” ๐Ÿ”ก๐Ÿ”ข๐Ÿ”ฃ๐Ÿ”ค๐Ÿ”ฅ๐Ÿ”ฆ๐Ÿ”ง๐Ÿ”จ๐Ÿ”ฉ๐Ÿ”ช๐Ÿ”ซ๐Ÿ”ฎ๐Ÿ”ฏ๐Ÿ”ฐ๐Ÿ”ฑ๐Ÿ”ฒ๐Ÿ”ณ๐Ÿ”ด๐Ÿ”ต๐Ÿ”ถ๐Ÿ”ท๐Ÿ”ธ๐Ÿ”น๐Ÿ”บ๐Ÿ”ป๐Ÿ”ผ๐Ÿ”ฝ๐Ÿ•๐Ÿ•‘๐Ÿ•’๐Ÿ•“๐Ÿ•”๐Ÿ••๐Ÿ•–๐Ÿ•—๐Ÿ•˜๐Ÿ•™๐Ÿ•š๐Ÿ•›๐Ÿ—ป๐Ÿ—ผ๐Ÿ—ฝ๐Ÿ—พ๐Ÿ—ฟ๐Ÿ˜€๐Ÿ˜‡๐Ÿ˜ˆ๐Ÿ˜Ž๐Ÿ˜๐Ÿ˜‘๐Ÿ˜•๐Ÿ˜—๐Ÿ˜™๐Ÿ˜›๐Ÿ˜Ÿ๐Ÿ˜ฆ๐Ÿ˜ง๐Ÿ˜ฌ๐Ÿ˜ฎ๐Ÿ˜ฏ๐Ÿ˜ด๐Ÿ˜ถ๐Ÿš๐Ÿš‚๐Ÿš†๐Ÿšˆ๐ŸšŠ๐Ÿš๐ŸšŽ๐Ÿš๐Ÿš”๐Ÿš–๐Ÿš˜๐Ÿš›๐Ÿšœ๐Ÿš๐Ÿšž๐ŸšŸ๐Ÿš ๐Ÿšก๐Ÿšฃ๐Ÿšฆ๐Ÿšฎ๐Ÿšฏ๐Ÿšฐ๐Ÿšฑ๐Ÿšณ๐Ÿšด๐Ÿšต๐Ÿšท๐Ÿšธ๐Ÿšฟ๐Ÿ›๐Ÿ›‚๐Ÿ›ƒ๐Ÿ›„๐Ÿ›…๐ŸŒ๐ŸŒŽ๐ŸŒ๐ŸŒ’๐ŸŒ–๐ŸŒ—๐ŸŒ˜๐ŸŒš๐ŸŒœ๐ŸŒ๐ŸŒž๐ŸŒฒ๐ŸŒณ๐Ÿ‹๐Ÿ๐Ÿผ๐Ÿ‡๐Ÿ‰๐Ÿค๐Ÿ€๐Ÿ๐Ÿ‚๐Ÿƒ๐Ÿ„๐Ÿ…๐Ÿ†๐Ÿ‡๐Ÿˆ๐Ÿ‰๐ŸŠ๐Ÿ‹๐Ÿ๐Ÿ๐Ÿ“๐Ÿ•๐Ÿ–๐Ÿช๐Ÿ‘ฅ๐Ÿ‘ฌ๐Ÿ‘ญ๐Ÿ’ญ๐Ÿ’ถ๐Ÿ’ท๐Ÿ“ฌ๐Ÿ“ญ๐Ÿ“ฏ๐Ÿ“ต๐Ÿ”€๐Ÿ”๐Ÿ”‚๐Ÿ”„๐Ÿ”…๐Ÿ”†๐Ÿ”‡๐Ÿ”‰๐Ÿ”•๐Ÿ”ฌ๐Ÿ”ญ๐Ÿ•œ๐Ÿ•๐Ÿ•ž๐Ÿ•Ÿ๐Ÿ• ๐Ÿ•ก๐Ÿ•ข๐Ÿ•ฃ๐Ÿ•ค๐Ÿ•ฅ๐Ÿ•ฆ๐Ÿ•ง"

for i =1,string.len(list) do
	local clone = script.Parent.TextButton:Clone()
	clone.Text = string.sub(list,i,i+1)
	clone.Parent = script.Parent
end

Some of them may be moderated, ones that include: hearts, people.

That cant be the case as when I type them one at a time, they appear fine

Instead of saving the emojis themselves, save the UTF code (like 0x1F92B) and use utf8.char() on them to extract the emoji

For example:

print(utf8.char(0x1F92B))

:shushing_face:

You can find the UTF codes online, even in a large list of all of them I imagine

3 Likes

Hi,

Hehe, this is a common bug that is easy to run in to using emoji like this.

The problem is that an emoji is made up of multiple characters. Kinda counterintuitiveโ€ฆ Worse, they are not all the same amount of charactersโ€ฆ

So when you loop through the characters in your string, you are extracting only halves (or fourths, etc) of emojis, and it is displayed as these weird boxes.

Hope this clears things up a bit for people, I had a big fight with this before I realised the problem. :slight_smile:

(So in your case, it would be solved by adding a comma between them and changing the quotes to table brackets {}, to make it an actual list. Oh, the emoji are still strings so you would also need to add quotation marks around each individually. After that, changing the loop to do what you want is then straightforward. Tested and works:)

list = {"๐Ÿ˜","๐Ÿ˜‚","๐Ÿ˜ƒ","๐Ÿ˜„",}
for i, emo in ipairs(list) do
	local clone = script.Parent.TextLabel:Clone()
	clone.Text = emo
	print(emo)
	clone.Parent = script.Parent
end
1 Like