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

How to hide chat?

I was wondering how to make it so you can hide someones chat if a certain value is true/false. Like in Murder Mystery. I've been trying making my own chat gui, it seems impossible to do how the murder games do it. If the players are dead I don't want the players who are alive to see the deads text.

1 answer

You can use the SetCoreGuiEnabled method when that value changes. (http://wiki.roblox.com/index.php?title=SetCoreGuiEnabled_(Method))

boolValue.Changed:connect(function(newValue) -- When the BoolValue changes, it will enable/disable chat
	Game.StarterGui:SetCoreGuiEnabled("Chat", newValue); -- Enables/Disables the Chat Core GUI dependong on the newValue
end);

1 comment

0

If a player has the dead value true and the others have the dead value false should not see the dead players chat.

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