Wall Jump/Slide script

I want to create a script that replicates how Mario can slide and jump off of walls in the 3D games but I’m not really sure where to start, there seems to be a lot of different approaches with raycasting and all sorts.

I did find this post from a while ago, but I’m unsure if things are deprecated and am confused on what the solution was in the end:

Thanks in advance!