DoTween moving platform In Unity

I need some help with unity.

I am using DOtween’s DOpath to make a platform move to several co ordinates. However, my player slides off the moving platform.

I’ve tried using ontrigger enter/exit to parent the player with the platform but it doesn’t seem to work with Dopath….can anyone help?