How can I detect if the players character is going up or down a hill?

Hey! How can I detect if the players character is going up or down a hill? Please answer! I dont know how to detect this. Thanks, WE.

You can determine if they’re going up or down based on the HumanoidRootPart’s Y axis.
Note that this is only an example, and there are a few ways, however this sounds the most reasonable.

1 Like

A very simple way you could go about doing this is creating a loop that checks if the players humanoidrootparts Y axis, and if it increases or decreases at all then you do the action that your looking to do. But 1 downside to this solution is if the player jumps that would make the humanoidrootparts y axis aswell so you would have to find a way to suppress that problem. i cant come up with any way to fix that off the top of my head though.