I’m not really sure what i did wrong on my end but I have a problem with the animation bit using humanoid description. Appearance changes like changing torso color work, however, custom animations don’t seem to register. Instead of a custom walking animation it plays the default Roblox animation instead. Here’s the code: (Any Help is Appreciated)
local ReplicatedStorage = game.ReplicatedStorage
local SpawnEvt = ReplicatedStorage:WaitForChild("Spawn")
SpawnEvt.OnServerEvent:Connect(function(plr)
local humDesc = Instance.new("HumanoidDescription")
humDesc.HeadColor = BrickColor.new("Medium stone grey").Color
humDesc.LeftArmColor = BrickColor.new("Medium stone grey").Color
humDesc.LeftLegColor = BrickColor.new("Medium stone grey").Color
humDesc.RightArmColor = BrickColor.new("Medium stone grey").Color
humDesc.RightLegColor = BrickColor.new("Medium stone grey").Color
humDesc.TorsoColor = BrickColor.new("Medium stone grey").Color
humDesc.WalkAnimation = 5281772665
humDesc.RunAnimation = 5281772665
plr:LoadCharacterWithHumanoidDescription(humDesc)
end)
Not sure if this is related but i see a warning message saying:
You should try to use a different walk animation (not the running animation) since it’s reusing the same animation for both walking and running. If the animation is mean’t for walking instead of running, try to make a running animation instead of a walking animation.
I wasn’t sure what the the animation was when you normally move with your character so I just set both of them to be sure. The thing is that the walk/run animation doesn’t seem to play at all and sticks with the default animation instead. I’m not sure that would work but thanks for the reply!
Usually characters spawn with a script called “Animator” which features all animations that are used. The walking and running animations are StringValues named “walk” and “run” and these have Animations that should be changed to the IDs of the animations you want to have.
Hey, I was wondering if you ever figured out how to change the default walking animation? And if so, is there any chance you would be able to share your method?
For sure! You can use a humanoid description to change any humanoid’s default walking animation. For more info on humanoid description: HumanoidDescription | Documentation - Roblox Creator Hub (There’s a RunAnimation property you can change)
Yea everything works except the actual animation doesn’t play. The new HumanoidDescription does get applied, everything else gets reset, and the character gets reloaded. However the actual animation doesn’t seem to work.