ChatServer font customization

I’m messing around with the chat service to try & customize the chat while using the default chat system provided by Roblox, however I’m struggling with some of the customizations.

download (10)

I’m trying to make these two pieces of text the font SciFi, and the font size 14 to be in line with the rest of the chat, however I can’t seem to change it. My code is as follows:

local gui = game:GetService("StarterGui")
gui:SetCoreGuiEnabled("All", false)
gui:SetCoreGuiEnabled("Chat", true)
gui:SetCore("ChatWindowPosition", UDim2.new(0,0,0.7,0))
local chat = game:GetService("Chat")
local chatmodules = chat:WaitForChild("ClientChatModules")
local chatsettings = require(chatmodules:WaitForChild("ChatSettings"))
chatsettings.DefaultFont = Enum.Font.SciFi
chatsettings.ChatBarFont = Enum.Font.SciFi
chatsettings.ChatWindowTextSize = "14"
chatsettings.ChatBarTextSize = "14"
chatsettings.DefaultWindowPosition = UDim2.new(0, 0, 0.7, 0)

Any help is appreciated! Thanks!

3 Likes

I don’t think numbers are string values. They are number values, so they don’t need quotations. I am not a scripter, so I am not sure if this will work for sure…

2 Likes

I forgot that the fontsize became a number over a string, however it still worked for the chatbox, just not the chat bar.

1 Like

So…I tested this script myself. I put it as a local script, and a script and placed it in workspace and ServerScriptService. It did not work.

Here is my chat bar and chat GUI:
image
Didn’t work for me at all.

1 Like

This is a localscript placed in the PlayerScripts, not in the workplace or ServerScriptService. I also have a wait(.04) at the beginning due to other code not related to this UI in the script

Perhaps that’s why it didn’t work for you

1 Like

This is a script inside of chat if you enter play mode from the explorer panel. Maybe there’s a ChatSettings inside of ClientChatModules that have this one below.

2 Likes

Oh okay. Thanks for correcting my mistake. :slight_smile:

2 Likes

Bumping this out of curiosity; never really received a positive or negative response

1 Like