This shows how to make barriers that your player cannot pass.
Credit to MakerBros420 for helping with original code.