PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

EquippedEmotesChanged

EquippedEmotesChanged fires when the equipped emotes are set on this description using HumanoidDescription/SetEquippedEmotes|SetEquippedEmotes. It provides the new equipped emotes in a table like that returned by HumanoidDescription/GetEquippedEmotes|GetEquippedEmotes.

Example

local hd = Instance.new("HumanoidDescription")
hd.EquippedEmotesChanged:Connect(function (equippedEmotes)
    print(("We have %d emotes equipped"):format(#equippedEmotes))
    for _, t in pairs(equippedEmotes) do
        print(("In slot %d: emote %s is equipped"):format(t.Slot, t.Name))
    end
end)
hd:SetEquippedEmotes({"Salute", "Agree"}) --> We have 2 emotes equipped

See also

  • articles/HumanoidDescription System, for more information on HumanoidDescriptions
  • HumanoidDescription/SetEquippedEmotes|SetEquippedEmotes, which fires this event
  • HumanoidDescription/GetEquippedEmotes|GetEquippedEmotes, which can be used to query the currently equipped emotes without this event firing

Parameters

Name Type Default Description

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