I know there is a method, and it uses SetCoreGuiEnabled, but I forgot which method does that. Help?
Go get the StarterGui and use the SetCoreGuiEnabled method. There are 2 parameters. 1 is the Type of core gui and the other is whether it is true or false.
1 | game:GetService( "StarterGui" ):SetCoreGuiEnabled( "Chat" , false ) |
This would remove the chat.
It's better to use Enum, incase you make a typo. You could always do
1 | game:GetService( "StarterGui" ):SetCoreGuiEnabled( "Chat" , false ) |
or
1 | game:GetService( "StarterGui" ):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false ) |
or
1 | game:GetService( "StarterGui" ):SetCoreGuiEnabled( 3 , false ) |
you can see the Enums here.
Also, remember the bar at the top of the screen, you can remove that. You cannot remove it through SetCoreGuiEnabled.
1 | game:GetService( "Players" ).LocalPlayer:WaitForChild( 'PlayerGui' ):SetTopbarTransparency( 1 ) |
If you're making a custom chat thing use this Function here.
Hope this helps! (Choose mine, we're having a contest.)
You can use SetCoreGuiEnabled, which allows to hide or disable some of ROBLOX's CoreGui elements.
1 | game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false ) |
Here are the other CoreGui elements you can disable.
1 | Enum.CoreGuiType.PlayerList |
2 | Enum.CoreGuiType.Health |
3 | Enum.CoreGuiType.Backpack |
4 | Enum.CoreGuiType.Chat |
5 | Enum.CoreGuiType.All |
StarterGui has a method called SetCoreGuiEnabled, but it needs to be local.
1 | --LOCAL |
2 | game:GetService( 'StarterGui' ):SetCoreGuiEnabled( 'Chat' , false ) |