Humanoid.MoveDirection returns 0 in server script for NPC owned by the server

Hello
Is Humanoid.MoveDirection a property which returns value only in local script?
I have an NPC which is created in a server script (its humanoidrootpart is also owned by the server), but I still get 0 for Humanoid.MoveDirection.Magnitude when the NPC moves and I try to read it in a server script…

Thanks

If the Humanoid isn’t a player’s then the MoveDirection will always show up as 0 regardless if the humanoid is moving.

2 Likes

I don’t know whats the point of doing it on an NPC when you know its going to move. Find the part where it moves it and just put your codes in there. However you can use this:
local Velocity = HumanoidRootPart.Velocity.magnitude

1 Like

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