For example, if someone says something in the chat, their name will show up as "[VIP]" and then their name. I've seen a lot of games that have this feature. I just can't figure out how you add the tag to the player's name. If one of you know how to script quite well, it would be kind to help me with this.
Here's what I've tried:
game.Players.PlayerAdded:Connect(function(player)
local tags = Instance.new("Folder", player)
tags.Name = "Tags"
if (service:UserOwnsGamePassAsync(player.UserId, gamepassId)) then
local newTag = Instance.new("IntValue", tags)
newTag.Name = "VIP"
local chatColor = Instance.new("Color3Value", newTag)
chatColor.Name = "ChatColor"
chatColor.Value = BrickColor.new("Gold").Color
local tagColor = Instance.new("Color3Value", newTag)
tagColor.Name = "TagColor"
tagColor.Value = Color3.fromRGB(239, 184, 56)
end
end)

1 comment
+1, btw you're the first person on this site that I see using ChatService by requiring it from ServerScriptService (that's what i do aswell), rather than by parenting a module to ChatModules under Chat.