There’s a built-in method of initialising chat settings that you should use instead. Just feels better and more native than requiring the ChatSettings at least if you want to initialise with certain settings.
local Chat = game:GetService("Chat")
Chat:RegisterChatCallback(Enum.ChatCallbackType.OnCreatingChatWindow, function()
return {
WindowResizable = true,
DefaultFont = Enum.Font.GothamBlack,
ChatBarFont = Enum.Font.GothamBlack,
}
end)
This should be a LocalScript in ReplicatedFirst. Even your code should be there as well as it only ever needs to run once. StarterGui is a resetting container so that code will run every time a player respawns which is not particularly ideal.