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.
For that, you can use the function :SetCoreGuiEnabled()
If you want to enable the chat, then you can use this simple code:
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
The first argument Enum.CoreGuiType.Chat
tells the script what part of the interface should be enabled/disabled
The second argument true
tells the script if it should be visible or not (true = visible, false = not visible)
Note: :SetCoreGuiEnabled()
can only be called from a local script.