Hello, I am wondering how I should handle animations, for example let’s say a player stopped and an idle animation is supposed to be played, do I detect that the player stopped due to no movement keys (w/a/s/d) are being pressed or by checking that the player’s velocity is 0?
I believe it’s better to check the player’s velocity instead, because this would also be easy to apply for mobile and console users (if you tend to allow these users in your game). If you made a custom movement system, you may use both methods.
You can use Humanoid.MoveDirection