So it confuses me how the tag I created is only replicating to the individual client. But the others can’t see that tag placed on that individual player? I don’t know how to go about replicating it to others…
Ex… I can see in the chat my name is displayed as “[Developer] soul: (Message Sent Here)”, but others cant? Others only see “soul: (Message Sent Here)”
local RS = game:GetService("ReplicatedStorage")
local TCS = game:GetService("TextChatService")
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local enablerole = false
RS:WaitForChild("UsableRankFolder"):WaitForChild("RankEnabler").OnClientEvent:Connect(function()
enablerole = not enablerole
end)
local succ, err = pcall(function()
TCS.OnIncomingMessage = function(message)
local properties = Instance.new("TextChatMessageProperties")
if message.TextSource and enablerole == true then
if message.TextSource.Name == game.Players:GetNameFromUserIdAsync(plr.UserId) and plr:IsInGroup(5313957) then
properties.PrefixText = ("<font color='#DE0909'>["..plr:GetRoleInGroup(5313957).."]</font> "..char:WaitForChild("Humanoid").DisplayName)
end
end
return properties
end
end)
if err then
warn(err)
end