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

How to hide chat?

Asked by 9 years ago

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

Log in to vote
-1
Answered by
jakedies 315 Trusted Moderation Voter Administrator Community Moderator
9 years ago

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);
0
If a player has the dead value true and the others have the dead value false should not see the dead players chat. peoplemove12 148 — 9y
Ad

Answer this question