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.
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)
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…
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
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.