Help with a door

how do I make a door able to open. right know i have a door that my character just walks through. this is not a level end door just a door with some goodies behind it

Add a variable bool to the door so if the player has the key or if the player is in collision with the door just set the bool variable to true and open the door maybe playing an animation.
Watch I made some video of a game I’m doing

Maybe things have changed a lot since then. I’ve encountered this problem, but in your example it’s a bit complicated.