How to Set Up a Function for Checking Player Movement Speed?

Another solution is to check bone velocity. Maybe there are better ones, but this is the only one I found that can report velocity not only while controlled by user, but also in ragdoll.