Saving "Chat tags" with ProfileService

So I’m using ProfileService to save my players data. And I’m going to have a in-game purchaseable cosmetic type thing, known as a chat tag. (If you don’t know what these are, they’re just little tags in chat next to your username.)

However - I want to save them in the following format:

{
	["Content"] = ". . .";
	["Color"] = Color3.fromRGB();
}

However, I’m not sure how.
I have my settings as the following:

local SETTINGS = {

	ProfileTemplate = {
		Settings = {
			DarkMode = true
		};

		Leaderstats = {
			Endcoins = 1000,
			Ghostgems = 10,
			Wins = 0
		};
		
		ChatTags = {
			
		}
	};

And I’d want to add the example format into the ChatTags table - could I just do it with table.insert? Or would I need to try something else

You can try this:

table.insert(Settings["ChatTags"], ChatTag)

Yeah, thats what I was thinking. I’ll try it out ina bit and mark you as solved when/if it works :slight_smile:

1 Like