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

How do I make my walking animation not stop while still walking?

The script makes the animation run but while the player is still walking the animation stops. Is there a way to make it so it keeps on looping as the player walks?

Oh and when I die, the animations disappear. Please help on those two things :)

game.Players.PlayerAdded:connect(function(player)
	while not player.Character do wait() end
	local character = player.Character
	local animatescript = character.Animate
	
	animatescript.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=268420501"
	character.Humanoid.WalkSpeed = 30

end)

1 comment

0

This has to do with your animation, make the priority an Action, therefore it overrides the previous animation. Also, the Animation editor gives you an option to make it loop, located on the top, right corner.

1 answer

As Hungry said in his comment, it's pretty simple.

There are two things if you want your animation to keep going smoothly:

First, make sure in the animation creator plugin, when you make your animation, the "Loop" checkbox at the top right corner is checked (yellow).

Second, make sure your animation ends with your initial position if you don't want it to kind of freeze before restarting again. Make sure the last keyframe (I believe thats what they call every position) is really at the far end and is the same (or at least sensibly the same) as the beginning.

Hope this helps.

2 comments

0

Thank you so much. That helped a tons!

0

No problem. Make sure you accept my answer in case someone is asking the same question in the future!

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