Animation trouble! how can i make my animation the walking animation?

so i am trying to make my animation into the walking animation but it is not working. this is my script: local function loadAnims(char)
local Hum = char:WaitForChild(“Humanoid”)
local Animator = Hum:WaitForChild(“Animator”)

for _, Track in pairs(Animator:GetPlayingAnimationTracks()) do
	Track:Stop(0)
end

local AnimScript = char:WaitForChild("Animate")
AnimScript.walk.walkAnim.AnimationId = "rbxassetid://9960075961"
--AnimScript.walk.WalkAnim.AnimationId = "rbxassetid://9959954361"

end

local function onPlayerAdded(Player)
Player.CharacterAppearanceLoaded:Connect(loadAnims)
end

game.Players.PlayerAdded:Connect(onPlayerAdded)

and i’m getting this error: walkAnim is not a valid member of StringValue “Realgoodguyalways.Animate.walk”

AnimScript.walk.WalkAnim.AnimationId = "rbxassetid://9960075961"

W should be capitalised.

even so, that is not the problem.

It is, and the OP can confirm after trying my method.

Replace the Run animation instead of the Walk animation; the walk animation is only being used when the player walks very slowly (as far as I am aware).

i tried that but it did not work, i had that same thought.

ok so i tried it and it did not work, i’m sure it worked for you but it did not for me.

What the error is, is that Roblox cant detect this:
image
“WalkAnim2” in my example.
Is it using the right name?

i’m sorry i don’t understand what you are trying to say, may you please expand on that.

Your line of code is:

AnimScript.Animate.walk.AnimationId = “___”

My example if I were to use this code would be:

AnimScript.Animate.WalkAnim2.AnimationId = “___”

What I’m trying to say is, are you using the right name?

oh i may not be, i will try that right now.