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 :>
first for all use animator to play emotes
Second of all check Animate script for this kind of information/modify it if have need to
1 Like
Found the solution, in a local script do:
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)