How to detect player movement?

Confirmed that this is the correct answer.