Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I enable chat with proximity prompt?

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.

1 answer

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.

2 comments

0

I tried to make the script become enabled after activating the proximity prompt before but it didn't work

0

You don't need to activate the script, simply put the code from the answer into your code after the proximity prompt

This discussion is preserved as it was. New answers, comments, and votes are closed.