Blender lego brick connection

can some one help me with my blender lego animation, as i cant seem to figure out how to make the lego bricks edges stand out.

Here is a image

im in the cycles render and i have tried using a geometry pointiness with a colorramp and that doesn’t work

How complex are your lego brick meshes i.e. do they have perfectly sharp edges?.

To accurately model a lego brick - you should probably chamfer/bevel the edges ever so slightly to round them off. That will help them to show up in your model.

i guess the only way i could use a bevel is using it brick by brick what would take forever

You can use the bevel modifier.

Yep this - use modifiers to get the desired result on one brick - then copy that modifier stack to all of your other bricks: