Strange problem with doors

Hello guys (and girls)! I’m really new to unreal engine. I’ve been trying to figure out what’s wrong with my blueprint for hours. It works perfect in the level blueprint but
when I try to make the same thing as a class blueprint everything goes to hell.

Here is a video of the problem and my blueprint:

Sorry for stupid question. Thanks for your help!

Try this