How to detect if a player is sliding up a wedge in a sliding system (R15)

I’m to create a sliding system for my game, but I need a way to detect if the player is going up the wedge so that they can’t just slide back up and only down.

Roblox (gyazo.com)