Change Chat Color Command

Hey Developers,

I’m trying to make a command where players can change their chat color if they own a gamepass. I’m not very experienced when it comes to manipulating/forking the ChatModules, so that’s why I decided to come to the dev forum to see if someone can point me in the right direction into somehow creating this sort of system.

I want to make this in chat command, so an example of this would be :chatcolor 255, 0, 0. The three RGB values would be the text color on the player’s bubble text.

I am using the old bubble chat system on Roblox, not the new one that’s updated. I attempted to edit the new bubble chat color, but it didn’t turn out the way I wanted it to.

Here’s an example of what I’m trying to accomplish, I got this example from Bloxton Hotels:
image

If you take a look at the image, you can see how the normal bubble color is changed to a rainbow effect. I’m not looking for the rainbow effect, I’m just trying to change the player’s bubble color to fully black and then set the bubble color text to the RGB value they put in the command.

1 Like

You can change the chatbubble settings through a local script:

local Chat = game:GetService("Chat")

Chat:SetBubbleChatSettings({
	BackgroundColor3 = Color3.fromRGB(250, 0, 0)
})

I’d assume in your circumstances, you just check for the gamepass; if they have it, you change their bubblechat box.

I believe that this is for the new bubble chat. I’m not using the new bubble chat, I’m using the old bubble chat.

I’d recommend reading this then:

It is useless because only the local player will see it.

To change the bubble chat of a player, you can add a Color3Value into the player. Then, you can edit your ChatModule to detect if the player has a Color3Value.

4 Likes