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)