How come my player keeps jumping infinetly jumping against the wall?

Im creating a new game right now.
and ive made a base object under a square(main character) and checked the " Is trigger" option on my base object and checked the “Is Kinematic” on the rigidbody and the all the freezeRotation boxes. Everything worked fine until i put a long box in the middle of the stage and i pressed my cube against long box and he can jump infinetly everytime hes being pressed against the block.

how can i fix this?
base obj code

var isGrounded : boolean;


function OnTriggerStay()
{
    isGrounded = true;
}
function OnTriggerExit()
{
isGrounded = false;
}

Don’t set isGrounded unless the collision point is below your character.

You can get the collision point if you use OnCollisionEnter and non-trigger objects, or you can do a downward raycast if you need Trigger.