You can write your topic however you want, but you need to answer these questions:
-
**What do you want to achieve?**So i want to always see if the part X position value is greater or lower than the player hrp X position
-
What is the issue? So the climb works fine like here
https://gyazo.com/655c234871e4bafa23afd6b058cf75ee
until u try going around a corner and now it actually changes the z value, but yet my script chooses the easier way and just plays the right boost animation instead of left boost cuz the X value of ledge is greater than the X of hrp position
https://gyazo.com/fdafc48a0aef827f8519907be95abd01 -
What solutions have you tried so far? Trying to check for Z value and then for the X
https://gyazo.com/585a4dbe5040c6528f90890eccc1b65e like here it changes the Z yet the X is greater so it chose to play rightboost instead
https://gyazo.com/9f2546a555e07598d8ebbd16abedeccc heres the code for it
if u have any better method i could use instead of using cframe please tell me (i dont think raycasting is a good one here since i use mouse position)