HumanoidDescription not working

aye! It worked! Thank you for walking me through this script. Never knew how complex the humanoid was! Thanks again :slight_smile:

Final code, made by @RobloxGamerPro20007


local Players = game:GetService("Players")

local function onCharacterAdded(character)
	local player

	local function getPlayerFromCharacter(character)
		for _, player in pairs(game:GetService("Players"):GetPlayers()) do
			if player.Character == character then
				return player
			end
		end
	end

	player = getPlayerFromCharacter(character)
	local humanoid = player and (player.Character and player.Character:FindFirstChildOfClass("Humanoid"))

	if humanoid then
		local descriptionClone = humanoid:GetAppliedDescription()
		descriptionClone.Torso = 0
		descriptionClone.RightLeg = 0
		descriptionClone.RightArm = 0
		descriptionClone.LeftLeg = 0
		descriptionClone.LeftArm = 0
wait(.2)
		humanoid:ApplyDescription(descriptionClone)
	else
		warn("Humanoid not found") --This is optional
	end
end

Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(onCharacterAdded)
end)

^ just for anyone who comes here for help with the same issue

1 Like