How to edit this script to work with a player?

How do i edit this tutorial to work with a player? I’ve tried using a humanoidrootpart and a torso but nothing else is working. Do i have to make my character have block based physics?