How to get the direction a humanoid is moving?

Hello! I want to learn how to get the direction a humanoid is moving. To be more specific, let’s say a player enables shift lock, and walks left without moving their camera, I want to know if they’re moving left.

The goal: My goal is to make a dashing system, that when the player is walking, if they press the set key, they will dash in the direction they were walking.

Hopefully this is enough information, those who decide to help, I appreciate it!

Humanoid.MoveDirection

This will return a normalized vector3 (length of 1 stud) that describes how the humanoid is moving in the X/Z space.

When using MoveDirection, I noticed if you’re using shift lock, and don’t rotate your camera, you will only dash towards where your facing.

Let me quote myself on that, apparently this is my fault, I spent hours trying to figure out why that happened, and came to the conclusion that shift lock effected move direction, but it was my fault, which has been fixed. Well, I guess that’s just programming, lol.

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