Emotes disabled after HumanoidDescription applied

When a HumanoidDescription is applied to a Humanoid, that Player will no longer be able to use Emotes

With line 7 commented out in game.ServerScriptStorage.Script, emotes work fine after pressing “.”

With line 7 not commented out, Emotes are disabled after pressing “.”

EmoteDisabledRepo.rbxl (21.4 KB)

6 Likes

This is because HumanoidDescriptions include the emote info, although maybe the error message is wrong here. You can fix this by copying over the emote info from the old description into the new description.

local Players = game:GetService("Players")

local function PlayerAdded(player)
	local function CharacterAdded(character)
		local humanoid = character:WaitForChild("Humanoid")
		
		local oldDescription = humanoid:GetAppliedDescription()
		local oldEmotes = oldDescription:GetEmotes()
		local oldEquippedEmotes = oldDescription:GetEquippedEmotes()
		
		local newDescription = Players:GetHumanoidDescriptionFromUserId(1)
		newDescription:SetEmotes(oldEmotes)
		newDescription:SetEquippedEmotes(oldEquippedEmotes)
		
		humanoid:ApplyDescription(newDescription)
	end
	
	CharacterAdded(player.Character or player.CharacterAdded:Wait())
	
	player.CharacterAdded:Connect(CharacterAdded)
end

for _,player in next, Players:GetPlayers() do
	PlayerAdded(player)
end

Players.PlayerAdded:Connect(PlayerAdded)
3 Likes

Thanks for the update. The user-presented error message was misleading, perhaps it should say that no emotes are equipped for the current outfit or something.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.