How to make object that unlocks the baricade

I don’t see any mistakes