Hello! I want to make a system similar to those mario games, where you can grab onto a wall and slide down it slowly and jump off it. To achieve that, I wanted set the player’s walkspeed to 0 so that they are unable to move towards and away from the wall. However, I also want the player to be able to slide left and right, and detach away from the wall.
So from the picture above, the circle’s circumference just represents the direction that the player can go to (im using humanoid.movedirection to check which direction the player wants to go). For example, if the player wants to move in the direction of the grey arrow, the value of X determines how fast the player would move left and right (i plan on manually setting the player’s position by updating it every frame, may not be a good idea).
However, I also want the player to stop grabbing the wall when their movedirection is facing the blue part of the circle.
Im not really good at the math and physics of such things, so help would be appreciated ![]()
Sorry if the way I explained is not clear, its a bit difficult for me to explain, if you need details pls ask ![]()
Edit: I solved the problem about the player stopping the wall grab when facing the blue part, but I havent solved the moving left and right issue

