Custom Bubble Chat For A Player That Owns A Gamepass

Hi guys! So, I just edited the BubbleChat script that will make a player that owns a gamepass to custom design bubble chat. Here’s how to do it (Step by step):

You can skip to Step 4 if you already know how to copy the BubbleChat script.

Step 1: Click Play at the Home tab in Roblox Studio.
image

Step 2: Copy the BubbleChat script inside the Chat folder (highlighted in the picture). Right click on it and then press Copy or just click it then press Ctrl + C.
image

image

Step 3: Click the Stop button and then paste the BubbleChat script to the Chat folder where you copied it from.
image

image

Script Editing part
Step 4: Edit the script and then write the following codes below.

Line: 12-13

local MarketplaceService = game:GetService("MarketplaceService")
local VIPGamepassId = 0000000 --Gamepass ID

image

Line: 224

local localPlayer = PlayersService.LocalPlayer

Line: 234-236

if (MarketplaceService:UserOwnsGamePassAsync(LocalPlayer.UserId, VIPGamepassId)) then
	chatBubbleMain.ImageColor3 = Color3.fromRGB(255, 255, 0)
end

Line: 242

local localPlayer = PlayersService.LocalPlayer

Line: 250-252

if (MarketplaceService:UserOwnsGamePassAsync(LocalPlayer.UserId, VIPGamepassId)) then
	chatBubbleTail.ImageColor3 = Color3.fromRGB(255, 255, 0)
end

Result:
image

So, that’s it guys! If you have any problem about this, don’t hesitate to ask me for help. Thank you and have a nice day!

22 Likes

Pretty cool, and seems useful for games with VIP or special little gamepasses. Do you think a feature where if you have a certain gamepass a UI shows up allowing you to customize the chat bubble color any time?

But overall seems like a good script, and would use for future games!

2 Likes

Thank you! Also thanks about your idea, it seems pretty cool. I’ll try to do that!

2 Likes

This is pretty cool!

Psst. Might want to change this topic to #resources:community-tutorials

2 Likes

Is there a way to make the bubble chat the new updated one?

Probably not. Roblox made this new chat core-based and the source won’t ever be accessible for us unless Roblox releases it.

edit: I was stupid when I wrote this, it is in CoreGui but it’s connected to a ton of other files and I don’t know how to fork it from there.

3 Likes

You could POSSIBLY go into the files or under CoreGui and look for the script but I doubt we’d find it.

2 Likes

is this still possible after the new TextChatService, im still using the old chat because the new chat has many bugs one being you cant add chat tags.

You can add chat tags, you just have to use the new API, It is not a bug that your old code for an entirely different API/System doesn’t work on it.