Wall help plz

how do i make walls and objects that cant be walked thru?