My dear friend @ember willow and I (mostly him) finished a script that gives users certain chat tag colours depending on some factors.
However, after the finishing of this script, the chat feature got completely annihilated and thus leaving the Roblox chat system useless,
Every message sent in the chat can only be seen locally, meaning if I want to write something in the chat nobody would see it, and also the other way around.
local textChatService = game:GetService("TextChatService")
local marketplaceService = game:GetService("MarketplaceService")
textChatService.OnIncomingMessage = function(message: TextChatMessage)
local properties = Instance.new("TextChatMessageProperties")
if message.TextSource then
local player = game:GetService("Players"):GetPlayerByUserId(message.TextSource.UserId)
if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then --Gamepass tag
if player:IsInGroup(32474054) then --Group tag
-- has gamepass, and is in the group, golden
properties.PrefixText = "<font color='#fcb103'>[VIP+]</font> "..message.PrefixText
else
-- has gamepass, not in group, white silverish
properties.PrefixText = "<font color='#e8e7e1'>[VIP]</font> "..message.PrefixText
end
else
if player:IsInGroup(32474054) then --Group tag
-- no gamepass, but in group, greenish
properties.PrefixText = "<font color='#48e500'>[Member]</font> "..message.PrefixText
end
end
return properties
end
end
** You are now Level 8! **

