Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I enable chat with proximity prompt?

Asked by 2 years ago

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

Log in to vote
0
Answered by
ShaShxa 105
2 years ago

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.

0
I tried to make the script become enabled after activating the proximity prompt before but it didn't work bringtixbackalready 7 — 2y
0
You don't need to activate the script, simply put the code from the answer into your code after the proximity prompt ShaShxa 105 — 2y
Ad

Answer this question