Playing default walk animation id shows default running animation (Overwrote Animate with tiny script)

I’m attempting to play the default walk animation on the local character, but Roblox plays the default run animation instead.

To reproduce, put a localscript named “Animate” in the StarterCharacterScripts folder with the following code:

wait(4)
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://507777826"--default walk animation id
local animationTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animation)
animationTrack:Play()

When I run this in a blank project, the character starts running instead of walking. When I use id 507767714 (default run animation), the character animates in exactly the same way.

What am I missing here? Is the true default walk animation id something else?

1 Like

Well, to start off, Humanoid:LoadAnimation is deprecated. Instead use this:

wait(4)
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://507777826"--default walk animation id
local animationTrack = game.Players.LocalPlayer.Character.Humanoid.Animator:LoadAnimation(animation)
animationTrack:Play()

(Roblox added an Animator to replace the Humanoid animating)

Although I’m a bit confused, when do you want the player to use the default walk animation?

1 Like

Thank you for your help, but running your code still animates a running character and not a walking character.

My actual game is using logic to decide which animation to play, which is working correctly for other animations except that walking appears as running, which I do not understand at all. I simply boiled the problem down to the bare essentials of always playing a walk animation for the purposes of posting here.

I don’t consider this a solution, but I’ve discovered that using the animation id of 913402848 instead of 507777826 results in a walking animation being played.

I’d still like to know why Roblox’s current default walking animation doesn’t actually result in a walking animation.

Roblox doesn’t have a default walking animation, it’s the same as the run animation, unless you’re using Rthro animations.

local Player = game.Players.LocalPlayer

repeat wait() until Player.Character

local Animation = Player.Character.Humanoid:LoadAnimation(workspace.Animation)

Animation:Play()

try making it an animation object

I figured out the issue. In Roblox’s default Animate script, there is this code:

walk = 	{ 	
	{ id = "http://www.roblox.com/asset/?id=507777826", weight = 10 } 
}, 

However, this code is no longer used. The default Animate script now uses a Animation object childed under the “walk” StringValue that uses the animation id 2510202577 for walking.

Replacing my code’s id with 2510202577 results in a walking animation being played.

2 Likes