Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to detect if NPC is walking??

Hello. I'm trying to create NPC. I made a script, so it walks around in different direction (I used math.random).

To make NPC walking, I used MoveTo() function.

Now, I'm adding a walking animation, but I don't know, how to make script that plays animation only when NPC is moving. Can somebody help me?

3 comments

0

you can also check their velocity but matt's is easier

0

mattscy it worked well, thanks :D

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.