Collapse Sidebar


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


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))

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


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"},