HumanoidDescription not working properly

The Animation; for some reason is not the one I set it to be:

I swapped the Run and Walk Animation

image

ID: 658831143
https://www.roblox.com/catalog/658831143/Ninja-Walk

ID: 658830056
https://www.roblox.com/catalog/658830056/Ninja-Run

In Game

https://gyazo.com/4daf3e9b55fc1db3afb012fc9e9878b5


Repro File.rbxl (19.9 KB)

Code
local PlayerS = game:GetService("Players")

PlayerS.PlayerAdded:Connect(function(plr)
	local HumanoidDescription = script.HumanoidDescription
	plr.CharacterAdded:Connect(function(Cha)
		local Hum = Cha:WaitForChild("Humanoid")
		Hum.Died:Connect(function()
			wait(PlayerS.RespawnTime)
			plr:LoadCharacterWithHumanoidDescription(HumanoidDescription)
		end)
	end)
	plr:LoadCharacterWithHumanoidDescription(HumanoidDescription)
end)

I have no idea why it’s not working properly; I’m looking for Help & Solutions, they are welcome and will be appreciated.

To my knowledge this occurrence is due to the way animations are uploaded to the website and how they are loaded and unpacked to the character via HumanoidDescription. You will have to manually upload these animations yourself in order to have success with switching them.

Hierarchy comparison between the run and walk animation:
image

As far as I know, when the HumanoidDescription is running through all its descriptors and applying it to the character, the respective booleans are extracted and placed into the animate script to replace what animations should be in use. Therefore, regardless, the run and walk animation will always be in the intended order rather than the expected order.

To fix this or attempt to do so, simply reupload the animations after swapping the names of the booleans (that includes the folder - right click the folder and save to Roblox). Then, use the model ids in the fields of Run and WalkAnimation instead and try again.

4 Likes

Thank you!

I don’t know how you acquire such in-depth knowledge of how the Humanoid Description works internally but I am very grateful you did.

I am now able to have a peace of mind, thanks to you.

I’m attempting a similar script but it is not even updating the animate script? The animation changes are all made by me.

local HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(76837996)
HumanoidDescription.WalkAnimation = 8122784980
HumanoidDescription.RunAnimation = 8122784980
P:LoadCharacterWithHumanoidDescription(HumanoidDescription)

There are no errors, and I know for a fact that it runs because I am spawned, but only the humanoid description is changed and not the animate script. I still move as the old walking animation.

2 Likes