How to make smooth moving platform that moves players on it?

I’ve been trying to find a good way to do this, but everything I’ve tried so far hasn’t worked

I want it to be as smooth as the moving platforms in Tower of Hell, but I can’t figure out how.
I’ve tried Tweening and BodyGyro’s & BodyPosition, how can I do this?

Do you mean like this?

Mhm, but is there a simpler solution? or is that the only one?

To be honest the provided code works but is also pretty outdated. However, the core concept remains the same. It’s really just three lines of code that make this work.