Help with custom run animation

Well firstly Merry Christmas.

I’m having a problem with a forked roblox default animate script.

What happens is that when I change walk animations the animation doesn’t stop.

this is the part I modified to make the transition

script.walk.WalkAnim:GetPropertyChangedSignal("AnimationId"):Connect(function()
	animNames["walk"][1]["id"] = script.walk.WalkAnim.AnimationId
	
	stopAllAnimations()
	
	playAnimation("walk", .1, Humanoid)
end)

2 Likes

Create an event, set it under ReplicatedStorage. Perhaps edit the function’s code to also fire the Event and then have another function on the server play the same animation. Make your playAnimation function a server sided module. In fact, don’t call the function on the client at all and instead it will replicate all the time from the server, it is a simple process and so would not have delay

Game looks great by the way, Merry Christmas yo

Are you playing the animation from the Humanoid? You should be playing it from the Animator, which is parented under the Humanoid. This will allow the AnimationTrack and everything done to it to replicate to the server.