How to Disable Private Chat for an Experience?

I would like to disable only private chatting between selected players (in a team) in my experience, so they cannot privately message each other answers to a test. I do not want to entirely disable the chat function.

I don’t know how to create a script for this, as I’m not particularly familiar with scripting for chat.

I have experimented with scripting, but nothing has worked.

local StarterGui = game:GetService("StarterGui")

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)

The above is the only code I was able to figure out, but this disables the entire chat for everyone.

Can anyone help? Thanks.

1 Like