How do you make a plane not pass through anything?

im new to unity, so i dont know have to do most basic stuff.

i have a character movement script, and it asked for a ground check. so i placed my player as the ground check. but now everytime i hit play, my player falls to the void.

anyone know how to fix this?

1-Make sure your player has a box collider 2d attached to it.
2-Make Sure your ground has a box collider 2d attached to it.
also scale the box collider as you please.

i cant add a box collider to my player object (not model) since it has a character controller and the box collider in the plane is vertical.