Im trying to change material on a static mesh object while overlapping

hi im trying to use blueprints to have an object change colors when it overlaps another of itself. i followed a tutorial on youtube, however it seems i must have missed something. i cant seem to figure this out.


This worked for me.