can there be a script, where it assigns the developer of the game’s friends with a special chat tag called friends, instead of manually adding the ID of every single friend, for example if I made a friend today i ain’t gonna remember to add them so the script should check if that person is a friend of me and assign the role, I wanna know if that is possible and how to do it
local Players = game:GetService('Players')
local ChatTags = require(script:WaitForChild('ChatTags')) --Replace this with the path to the ChatTags
local FriendTagTitle = '[Friend]'
local FriendTagColor = Color3.fromRGB(85, 255, 255)
local OwnerId = 0 --Replace this with the Developer's UserId
Players.PlayerAdded:Connect(function(player)
local isFriendWithOwner = false
pcall(function()
isFriendWithOwner = player:IsFriendsWith(OwnerId)
end)
if isFriendWithOwner then
ChatTags.Add(player,FriendTagTitle,FriendTagColor,1)
end
end)
When I chat, it always shows three “?” at the tag,
this is my Script:
local Players = game:GetService('Players')
local ChatTags = require(script:WaitForChild('ChatTags')) --Replace this with the path to the ChatTags
local FriendTagTitle = '[Friend]'
local FriendTagColor = Color3.fromRGB(0, 0, 0)
Players.PlayerAdded:Connect(function(player)
ChatTags.Add(player,"bro",FriendTagColor,1)
end)
Typically, that would require a more technical approach, such as forking the chat and rewriting it to allow that level of customization. Evade has a custom chat system that not only adds gradients to chat tags but also includes additional effects, such as moving particles.
I’d suggest looking at this open-source implementation of TextChatService. I believe it supports what you’re trying to achieve.