Getting Emote IDs from equipped emotes

I’m trying to get the equipped emotes’ IDs from the player’s character in order to pass them to a different script.

For example, the GetEquippedEmotes function returns the names of currently equipped emotes, but not their asset ID.

Does anyone know how to fetch emote IDs?

HumanoidDescriptions have a function that returns the names and ids of all currently equipped emotes

Player.Character.HumanoidDescription:GetEmotes()

Getting the emote IDs:

local emoteIds = {}

for _, emotes in pairs(humanoidDescription:GetEmotes()) do
	for _, emoteId in pairs(emoteIds) do
		table.insert(emoteIds, emoteId)
	end
end

-- passing the emote ids to the other script (with the emoteIds table)
1 Like

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