So, This is in the ExtraDataInitializer script in the Chat Service. I'm not sure what I did incorrectly, what did I do wrong?

-- Tag

    ['VIP'] = {
        TagText = "VIP",
        TagColor = Color3.fromRGB(239, 184, 56),
    }

-- Chat Color

    Gamepasses = {
        {
            GamepassId = 7033580,
            ChatColor = Color3.new(1, 215/255, 0),
        },
    },

-- Give Tag

    Gamepasses = {
        {
            GamepassId = 7033580, 
            Tags = {'VIP'},
        },
    },

This part below is supposed to give the Chattag and Color.

elseif SpecialChatColors.Gamepasses then
    for _, gamepass in pairs(SpecialChatColors.Gamepasses) do
        local playerFromSpeaker = Players:FindFirstChild(speakerName)
        if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(playerFromSpeaker.UserId, gamepass.GamepassId) then
            return gamepass.ChatColor
        end
    end

Is there any reason why this wouldn't be working?

2 comments

0

I can't really help with the amount of info I was given. Please try to elaborate more in the future

0

Basically, If the user owns the GamepassId I want it to give them a chat tag and color, none of these are working. If you could help me and let me know how I can give more info to be more helpful, it would be appreciated.