Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I Make it so that everyone can see custom Bubble chat colors?

Asked by 2 years ago

I have a script that changes your bubble chat color depending on your team but only the player can see their bubble chat color. Heres my script (its a server sided script):

game.Players.PlayerAdded:Connect(function(LocalPlayer)
    local ChatService = game:GetService('Chat')
    local BackgroundColor = LocalPlayer.TeamColor.Color
    local Teamchange = LocalPlayer:GetPropertyChangedSignal('Team')

    local TextSettings = {
                BackgroundColor3 = BackgroundColor,
                TextColor3 = Color3.fromRGB(255, 228, 253)
    }

    ChatService:SetBubbleChatSettings(TextSettings)
    Teamchange:Connect(function()
        print('team change')
        local TextSettings = {
                    BackgroundColor3 = LocalPlayer.Team.TeamColor.Color,
                    TextColor3 = Color3.fromRGB(255, 228, 253)
        }
        ChatService:SetBubbleChatSettings(TextSettings)
    end)
end)

Answer this question