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 )
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)