Can SendSystemMessage specify ChatColor?

Hello!

My question is fairly simple.

An admin command chat module I made uses the following line to confirm whether an administrator has been “disguised” or not:

spkr:SendSystemMessage("Un-Disguised!", "All")

Or:

spkr:SendSystemMessage("Disguised!", "All")

Take spkr to be a speaker object I retrieved earlier in the script itself.
I am curious as to whether I can specify other fields in that string for properties such as ChatColor, Font, etc.

Is this possible?

Thanks for your help in advance!

3 Likes

Well yeah, yeah you can do anything you want. Just like :SetCore(), you can specify a dictionarry containing all of that customization info, this dictionarry will contain each property as a key, the keys have to have a specific name.

spkr:SendSystemMessage("Un-Disguised!", "All", {
       ChatColor = Color3.fromRGB(0, 0, 255),
       Font = Enum.Font.Arcade
})

And add more properties
Or with simple syntax just do

spkr:SendSystemMessage("Un-Disguised!", "All",{ChatColor = Color3.fromRGB(0, 0, 255), Font = Enum.Font.Arcade})
5 Likes

Great to know.

Thanks for your help!

2 Likes