PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

GetEquippedEmotes

GetEquippedEmotes returns an array of tables which indicate the Name and Slot of each equipped emote as it was set by HumanoidDescription/SetEquippedEmotes|SetEquippedEmotes.

Example

local hd = Instance.new("HumanoidDescription")
hd:SetEmotes{Salute = {3360689775}, Agree = {4849487550}}
hd:SetEquippedEmotes({"Salute", "Agree"})
-- Iterate over the equipped emotes:
for _, t in pairs(hd:GetEquippedEmotes()) do
    print(("In slot %d: emote %s is equipped"):format(t.Slot, t.Name))
end

See also

  • articles/HumanoidDescription System, for more information on HumanoidDescriptions
  • HumanoidDescription/SetEquippedEmotes|SetEquippedEmotes, which sets the currently equipped emotes and changes what this function returns
  • HumanoidDescription/EquippedEmotesChanged|EquippedEmotesChanged, which fires when the function returned by this value may have changed

Returns

Return Type Summary

An array of tables describing the name and slot which each emote is equipped. Example:

{
    {Slot = 3, Name = "Salute"},
    {Slot = 2, Name = "Agree"},
    {Slot = 1, Name = "Disagree"},
}