(script:WaitForChild("\080\108\097\121\069\109\111\116\101")).OnInvoke=function(u)if pose~="\083\116\097\110\100\105\110\103"then return end if emoteNames[u]~=nil then playAnimation(u,EMOTE_TRANSITION_TIME,Humanoid)return true,currentAnimTrack end return false end

script:WaitForChild("PlayEmote").OnInvoke = function(emote)
	-- Only play emotes when idling
	if pose ~= "Standing" then
		return
	end
	if emoteNames[emote] ~= nil then
		-- Default emotes
		playAnimation(emote, EMOTE_TRANSITION_TIME, Humanoid)

		return true, currentAnimTrack
	end

	-- Return false to indicate that the emote could not be played
	return false
end