Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Custom Walking Animation not Working?!


I have a problem. So I made a custom walking animation and it works when idling but when I'm walking nothing happens. Here is the code:

Game.Players.PlayerAdded:connect(function(player)
	while not player.Character do wait() end
	local character = player.Character
	local animateScript = character.Animate
	animateScript.walk.Animation1.AnimationId = 'http://www.roblox.com/asset/?id=211400668'
end)

Please help! I really like this custom animation (By the way the location of it is: games.ServerScriptService.Script )

1 comment

0

I made a mistake. I've updated my answer. The mistake was a syntax error. Be sure to check the output & the script analysis pane, because they check the potential errors of your scripts.

1 answer

✓ Accepted answer

Please put your code in the code block next time.

There's one immediate error that appears in your script:

The walk value does not have a child named as Animation1. It is named as WalkAnim, unless if you changed the name of the animation. The idle object is the only thing that contains two animation, of which are named as "Animation1" and "Animation2".

game.Players.PlayerAdded:connect(function(player)
	while not player.Character do
		wait()
	end
	local character = player.Character
	local animateScript = character:WaitForChild("Animate") -- Some ':WaitForChild()s' just in case.
	animateScript:WaitForChild("walk"):WaitForChild("WalkAnim").AnimationId = 'http://www.roblox.com/asset/?id=211400668'
end)

2 comments

0

@Redbullusa doesn't work. But thanks for trying to help!

0

Thanks it works now :D

This discussion is preserved as it was. New answers, comments, and votes are closed.