How to make emoji display on textlabel>

So im trying to display an emoji on a textlabel but when i tried it wasn’t working, how can i do this?

function element(player, elementText)
	if player.LevelData.Element.Value == "Fire" then
		elementText.Text = "🔥"
	elseif player.LevelData.Element.Value == "lightning"  then
		elementText.Text = "⚡"
	elseif player.LevelData.Element.Value == "Wind" then
		elementText.Text = "💨"
	elseif player.LevelData.Element.Value == "Water" then
		elementText.Text = "🌊"
	elseif player.LevelData.Element.Value == "Earth" then
		elementText.Text = "⛰️"
	end
end

element(player, elementText)
		
		player.LevelData.Element.Value.Changed:Connect(function()
			element(player, elementText)
		end)

Are they any errors as that should work, where does elementText come from?

ohh, i didn’t see the error but now i do. The output was flooded with prints. I accidentally added “Value” to the changed event sorry for the trouble.

Ah no worries, have a good day! Don’t forget to mark it as solution so no one gets confused later!

1 Like