How can I make players stick to moving parts?

This should help achieve your goal: