I'm trying to make a myth game that needs the person to speak a certain code to open a door but everything I'm trying doesn't seem to work. I'm thinking that this is possibly the only way I know how to do it. I've already disabled the chat with a script, but I don't know how to make it so the chat can get reenabled.
https://youtu.be/a8i6_L2elTM Here's a video link for the problem.

2 comments
I tried to make the script become enabled after activating the proximity prompt before but it didn't work
You don't need to activate the script, simply put the code from the answer into your code after the proximity prompt