Animation can't stop on server-side

Hey! I’m trying to make switch between the walk and run animation using the default Animate local script. The issue is that (only on server-side, for other players) the running animation doesn’t stop after I stop running, check this video.

I tried making a remote for it, changing humanoid state type, manually calling the functions, changing the animation loop value and more. The only thing that “worked” is jumping at the same time that I stop running, but it obviously isn’t a solution (I tried playing around with .Jumping, .Freefall and .Landed humanoid state types but it didn’t work).

This is the short code I use in Animate local script (as I said, the default one created by Roblox, all of the functions included are the ones created by Roblox, slightly modified), I change ID’s from a different local script:

script:WaitForChild("run").RunAnim:GetPropertyChangedSignal("AnimationId"):Connect(function()
	if pose == "Running" then
		playAnimation("run", 0.2, Humanoid)
		setAnimationSpeed(runAnimSpeedMultiplier)
	end
end)

Thank you for reading!

I don’t know if I understood much, but you don’t need to localize this, just find out that if the player walks less than speed 16, or higher to play a different animation

https://create.roblox.com/docs/reference/engine/classes/Humanoid#Running

Humanoid.Running:Connect(function()
	if (Humanoid.WalkSpeed <= 16) then
		print("AnimationWalk:Play()")
		print("AnimationRun:Stop()")
	else
		print("AnimationWalk:Stop()")
		print("AnimationRun:Play()")
	end
end)
1 Like

I already do that, but Animate local script allows you to smoothly change between the core animations. If I do it from an own script, it will be awfully blended or completely override it.

Thank you for replying!

1 Like

It will be replaced with what you put in from roblox called “Animate”

1 Like

I already know all of that, I’m using that exact script, and actually it will be replaced with the ID’s you put inside the script. You should open the script and check at the functions (and everything else, since that script also uses a .Running I’m including in my post!

Thank you for replying!

About your case I would recommend waiting until someone else can try to help you, I didn’t quite understand what you meant, I’m sorry kk

Good luck!

1 Like

This seemed to work (topic isn’t very related, but it worked!): How to fix this animation? - #21 by gmtojay

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.