Hello I need help making a Advanced chat tag system. I will list what I have so far.
function tag(rank, name, tagc, namec, chatc)
local groupid = 12345 -- FAKE Group ID
game.Players.PlayerAdded:Connect(function(player)
if player:IsInGroup(groupid) then
if player:GetRankInGroup(groupid) == rank then
local tags = {
{
TagText = name, -- Tag
TagColor = tagc -- Member tag Color
}
}
local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService)
local speaker = nil
while speaker == nil do
speaker = ChatService:GetSpeaker(player.Name)
if speaker ~= nil then break end
wait(0.01)
end
speaker:SetExtraData("Tags",tags)
speaker:SetExtraData('NameColor', namec)
speaker:SetExtraData("ChatColor",chatc) -- Text Color
end
end
end)
end
tag(100, "🗺️Vip Dog", Color3.fromRGB(131, 254, 236), Color3.fromRGB(179, 182, 183), Color3.fromRGB(255, 255, 255))
tag(200, "🔧Moderator", Color3.fromRGB(225, 169, 245), Color3.fromRGB(179, 182, 183), Color3.fromRGB(216, 193, 229))
tag(201, "🔧AC Mod", Color3.fromRGB(225, 169, 245), Color3.fromRGB(179, 182, 183), Color3.fromRGB(216, 193, 229))
tag(203, "🛠️Admin", Color3.fromRGB(155, 29, 240), Color3.fromRGB(179, 182, 183), Color3.fromRGB(216, 193, 229))
tag(212, "🛠️Head of Staff", Color3.fromRGB(155, 29, 240), Color3.fromRGB(179, 182, 183), Color3.fromRGB(216, 193, 229))
tag(214, "🛠️President", Color3.fromRGB(155, 29, 240), Color3.fromRGB(179, 182, 183), Color3.fromRGB(216, 193, 229))
tag(215, "🔨Developer", Color3.fromRGB(255, 26, 0),Color3.fromRGB(43, 131, 255), Color3.fromRGB(255, 81, 26))
tag(255, "⚡God", Color3.fromRGB(255, 111, 0),Color3.fromRGB(242, 239, 2), Color3.fromRGB(255, 183, 0))
I need Vip add to the script.
What I need in it
-
It needs to have vip in it but if you have any of those ranks it does not show up, But the staff one will.
-
I need to be able to change the color for VIP.
If you make it add your self a cool tag , Ex: [Tag maker] [Name]: Text.
if you want an extra challenge
You can add images/icons before the name.
Please make the script please don’t tell me how.