How to make moving part move player too

Hello, I tested a moving square for an obby but when the player steps on it it moves but the player doesn’t (even though its on top of the part). Is there any way to make it so that the player actually stays on the part when it moves?

Here’s the script:

Is there anything I can do to change the script to make this idea work, or are there other methods?

This is probably what you’re looking for.