How come my gamepass tag isn't working? There's no error that I see (I think..) [Dumb spam filter]

Note: I'm new to gamepass stuff and the chat tag, you might see some stuff that might not even be good at all.

local ServerScriptService = game:GetService('ServerScriptService')
local ChatService = require(ServerScriptService:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local gamePassID = 11880804


local function onPlayerChatted(PlayerName)
	local Speaker = ChatService:GetSpeaker(PlayerName)
	if Players.MarketplaceService:UserOwnsGamePassAsync(PlayerName.userId, gamePassID) then
		Speaker:SetExtraData('Tags', {{TagText = 'VIP ????', TagColor = Color3.fromRGB(161, 230, 255)}})
		Speaker:SetExtraData('ChatColor', Color3.fromRGB(255, 255, 255))
		Speaker:SetExtraData('NameColor', Color3.fromRGB(101, 209, 255))
		print("CHAT LMAO")
	end
end

ChatService.SpeakerAdded:Connect(onPlayerChatted)

1 comment

0

Question 2: I have a group tag separate with the gamepass tag... Is it possible for the gamepass tag to not overlap with the group tag too?