(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.Chatted:connect(function(R)local l=""if R=="\047\101 \100\097\110\099\101"then l=dances[math.random(1,#dances)]elseif string.sub(R,1,3)=="\047\101 "then l=string.sub(R,4)elseif string.sub(R,1,7)=="\047\101\109\111\116\101 "then l=string.sub(R,8)end if pose=="\083\116\097\110\100\105\110\103"and emoteNames[l]~=nil then playAnimation(l,.1,Humanoid)end end)
---- setup emote chat hook
game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
	local emote = ""
	if msg == "/e dance" then
		emote = dances[math.random(1, #dances)]
	elseif string.sub(msg, 1, 3) == "/e " then
		emote = string.sub(msg, 4)
	elseif string.sub(msg, 1, 7) == "/emote " then
		emote = string.sub(msg, 8)
	end

	if pose == "Standing" and emoteNames[emote] ~= nil then
		playAnimation(emote, 0.1, Humanoid)
	end
end)
