Check if player is colliding with top face of box collider?

Hi, i need to know how to make my player detect when he’s on top of a box collider, so that the game knows when he’s allowed to jump. Any ideas? Ive tried separate meshes for the top, but i want an on click function later on, so separate colliders would cause problems…

You could raycast downwards 1/2 (plus a fractional wiggle room) of the players collider size downwards to see if anythings below it, or maybe if check for a “floor” tag. Most situations you want to check like that and not do anything with the box per se.