how open door after answer some questions

hello Iam student can help me Iam need blueprint of open door if player or character near from door show 5 the question if answer correct all the question the door open and if dont answer three question door not open and show text gameover [HR][/HR]