I want to make it that when I press a button it does /e dance2. On the roblox docs it does not show how to run the /e emotes but only custom emotes. I have tried doing:
local Players = game:GetService("Players")
local humanoid = Players.LocalPlayer.Character.Humanoid
humanoid:PlayEmote("dance2")
but it says that dance2 is not a valid emote. Thanks :>
local button = script.Parent -- If you are using a button
local Players = game:GetService("Players")
local char = Players.LocalPlayer.Character
button.MouseButton1Click:Connect(function() -- If you are using a button
char.Animate.PlayEmote:Invoke("dance2") -- Options are: idle, walk, run, jump, fall, climb, sit, toolnone, toolslash, toollunge, wave, point, dance1, dance2, dance3, laugh and cheer
end)