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

How to make custom walk animation loop?

I am trying to have custom walking animations for my game. The problem is that the animation only fires once while walking, then the player just stands still while walking.

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://7215280276"
		char.Animate.run.RunAnim.AnimationId = "rbxassetid://7215280276"
	end)
end)

The script is located in ServerScriptService.

Does anyone know how to make the animation loop like the normal animation?

1 answer

Nevermind, found the solution myself. I had to edit the Animate script and make the AnimationTrack loop.

		-- load it to the humanoid; get AnimationTrack
		currentAnimTrack = humanoid:LoadAnimation(anim)
		currentAnimTrack.Looped = true -- add this
		currentAnimTrack.Priority = Enum.AnimationPriority.Core

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