Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make a bubble text color script? Not in chat, but the bubble chat over head.

I want it so that the Text on the bubble chat is a certain color.

local admins = {"Dev_CTGM"}
local BubbleTextColor = 'Really blue'
local NameColor = 'Really blue'

for i,who in pairs(admins) do
	game.DescendantAdded:Connect(function(a)
		pcall(function()
			if a.ClassName=='TextButton' then
				local b = a
				if string.find(b.Text,who..']') then
					if BubbleTextColor ~= '' then
						b.Parent.TextColor=BrickColor.new'Really blue'
					end
					if NameColor ~= 'Really blue' then
						b.TextColor=BrickColor.new('Really blue')
					end
				end
			end
		end)
	end)
end

1 answer

I'm not that sure why you're isn't working.

Anyways, here's a working script.

function playerEntered(player)
	if player.Name == "Dev_CTGM" then
	player.Chatted:connect(function(msg)
		repeat wait() until player.Character
		local character = player.Character
		local head = character:WaitForChild("Head")
		if character then if head then game:GetService("Chat"):Chat(head, msg, "Blue") end end
	end)
	end
	end

game.Players.PlayerAdded:Connect(playerEntered)

1 comment

0

Did not work.

This discussion is preserved as it was. New answers, comments, and votes are closed.