PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

SetEmotes

SetEmotes sets all of the emotes on this description given a table similar to that returned by HumanoidDescription/GetEmotes|GetEmotes. It fires HumanoidDescription/EmotesChanged|EmotesChanged

Example

local emotes = {
    Salute = {3360689775}, -- Syntax note: can also use ["Salute"] = ...
    Agree = {4849487550},
    Disagree = {4849495710}
}
local hd = Instance.new("HumanoidDescription")
hd:SetEmotes(emotes)

See also

  • articles/HumanoidDescription System, for more information on HumanoidDescriptions
  • HumanoidDescription/AddEmote|AddEmote and HumanoidDescription/RemoveEmote|RemoveEmote which can modify the added emotes on an individual level
  • HumanoidDescription/EmotesChanged|EmotesChanged, which fires when this function is called

Parameters

Name Type Default Description

A dictionary of emotes where the key is the emote name and the value is an array of emote asset IDs. Example:

{
    Salute = {3360689775},
    Agree = {4849487550},
    Disagree = {4849495710}
}

Returns

Return Type Summary