How do I get my mesh to stay with my collider?

Like this? If so, yea I have tried it, it just achieves the same result as in the YouTube video.