Bool Humanoid.IsMoving

As a Roblox developer, it is currently too hard to determine whether or not the humanoid is currently moving (via :MoveTo) at a certain point in time without constantly monitoring MoveTo calls and the MoveToFinished event

If Roblox is able to address this it would let me be able to determine whether or not the humanoid is moving

6 Likes

it’s weird that Humanoid.MoveDirection doesn’t update when using MoveTo on an npc or player

What about checking HumanoidRootPart.Velocity.Magnitude > 0.1 ? Edit: Ah nevermind if they’re being pushed by something, doesn’t count as walking

1 Like

You could keep track of this using the event Humanoid.MoveToFinished

I don’t really think that would work in practical solutions because isn’t velocity influenced by external forces too such as gravity and other humanoids/objects pushing around this humanoid?

@Osyris That’s what I’m going to be doing now but I think that it’s messy still

Ugh, there actually is an internal bool tracking this, but we don’t expose it anywhere in reflection.
I’ll mention it internally and see if we can display it as a readonly property.

MoveTo seems messy to me because it also has an 8 second timeout that no one knows about.

5 Likes

You can also listen to the Running event, it passes one argument named “speed” which reflects the humanoid’s current movement speed.

Yes! The 8 second timeout! I found out about this a long time ago and it practically broke all the NPCs in my game lol.

1 Like

That might be a good wiki addition…

1 Like

I believe I added it recently.

1 Like

They’re looking for a property that determines if the humanoid is moving because they were prompted to do so by the MoveTo function, not just movement in general.