Hey,
I have an issue with my ChatTag System, and I would love some help if you don’t mind.
Issue
So basically, I made a button that fires a remote and changes the ChatTag,
the problem is, it changes the ChatTag for EVERY player in the server.
Code
--[[ SERVICES ]]--
local plrs = game:GetService("Players")
local sss = game:GetService("ServerScriptService")
local rs = game:GetService("ReplicatedStorage")
------------------------------------------------------------------------------------------------------------
--[[ VARIABLES ]]--
local events = rs:WaitForChild("Events")
local chatService = require(sss:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
------------------------------------------------------------------------------------------------------------
--[[ CHAT TITLES ]]--
chatService.SpeakerAdded:Connect(function(player)
local speaker = chatService:GetSpeaker(player)
events:WaitForChild("EquipTitle").OnServerEvent:Connect(function(plr, title, titleColor)
speaker:SetExtraData('NameColor', titleColor)
speaker:SetExtraData('ChatColor', Color3.fromRGB(255,255,255))
speaker:SetExtraData('Tags', {{TagText = title, TagColor = titleColor}})
end)
end)