Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you check if a given humanoid has stopped moving?

Asked by
Nep_Ryker 131
2 years ago

Currently, I'm trying to make a cutscene, once you touch a part, an NPC will walk to a set location, and once it has reached its position, a dialog UI would pop up.

I'm using the MoveTo() method to move the humanoid, I've looked upon this topic multiple times but none of them seem to work, I've tried waiting until the Humanoid's MoveDirection.Magnitude is equal to or less than 0, and as well as waiting until the MoveDirection is equal to 0,0,0

I've also tried to just check if the idle animation is playing or not, but it doesn't seem like I can even use the IsPlaying property, I just get an error saying that it's not a valid member of the instance.

At one point I even tried printing the MoveDirection of the humanoid in a loop, but all I get is 0,0,0 even though it's moving.

I might be doing something wrong but I honestly don't know what, any help would be greatly appreciated.

1 answer

Log in to vote
-1
Answered by 2 years ago

hmm idk

Ad

Answer this question