To create a sloped Lego brick start with a standard box with the following parameters: L=16, W=8, H=9.6 with 2 length segments. Convert it to an editable poly and select the indicated edge:

11

Move the edge down 8 units to create the slope.

Now select the top 2 faces, click Clear All on the smoothing groups panel and then CTRL + click on Edge, click Grow and chamfer with a value of 0.1

12

Move and copy one of the cylinders (studs) to create a sloped brick.

13

Using the described techniques for basic and sloped bricks, I created some more parts until I had the following Lego parts.

14