Hi, whenever I'm trying to use Enum.HumanoidStateType.RunningNoPhysics (starting to move character) to play my animation, and then I stop moving, the animation doesn't stop. The animation keeps playing even when I stop moving. Any ideas why? Is there a "not moving/stopped" state?

Character.Humanoid.StateChanged:connect(function(state)
	if state == Enum.HumanoidStateType.RunningNoPhysics then
		walk:Play()
	else
		walk:Stop()
	end
end)

2 comments

1

there are two args passed the old state and the new state.

0

Please read the comments. Kingdom has the solution.