Do you mean, show the chat core GUI?
If so, that would be
local StarterGui = game:GetService("StarterGui")
script.Parent.Touched:Connect(function()
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
end)
However, this script would enable it for the whole server, i believe. To only do it for one person, you could fire a RemoteEvent to the player who touched it.
After doing some reading on the developer hub, I think I may have found your problem. There is no active= before the true. Try adding that, and see if it works.
local StarterGui = game:GetService("StarterGui")
script.Parent.Touched:Connect(function()
StarterGui:SetCore("ChatActive",{active=true})
end)
Many things could cause this. Before I start, make sure you are operating within a LocalScript. Secondly, what is the context of this? Do you simply wish to disable the player’s chat? If so, this is the correct solution:
ChatActive is the boolean value representing if the chat window is open or not. For example, if you set ChatActive to false, the player can simply reactivate the chat window by clicking on the chat icon. If you wish to completely disable the chat, go with what I quoted above. Please explain the reasoning behind your attempt to make the chat window inactive.
I want to make the chat active when a player touches the part, don’t be confused with SetCoreGuiEnabled. I did everything in a local script in many ways. If you’re curious, the part is not touching anything.