I was just messing around with,sine,cosine,abs,floor,ceiling and atan.I was playing when I found a script that allows you to turn downward according to your y position and x position If you go to the edge you can walk up and down walls without falling
If used pls give credit