Does anyone know or have a script to make the character enter the hole and then use rope?

Thanks you.;)