How would you make a function that gets called for example each time player walks 100 units? I've tried saving their old origin and comparing it to the new in a task, but that is not a great solution as when the player falls, uses teleport of any kind or something similar, it shows greatly incorrect values.
I'm creating an achievement that gets unlocked after player moves 50000 units, therefore this should be called each 100 units so I can save accordingly.