Boundaries

Whats the Script for walls boundaries and floors so that you cant move through them?
Please Help