Are there helpful forum posts for us to code this? I've looked at tutorials but I don't know how to do it. This is the first time I came across the example you gave.
there are a few post on the LFSLapper developer forum (Search) with a few example about trackuserdistance() and GetAngle(). The rest is up to you to test and write example codes to understand the code and merge/implement it in your own script.