I do not want to set extra data, and if I did, I would not have come here (already have like a lot of experience).
Let me explain it more clearly.
In the white, the player (me). I want to get the name color FOR THAT, not using:SetExtraData().
In the red, the message. I want to get the chat color FOR THAT, not using:SetExtraData().
local players = game:GetService("Players")
local server = game:GetService("ServerScriptService")
repeat wait() until server.ChatServiceRunner
local chatService = require(server.ChatServiceRunner.ChatService)
chatService.SpeakerAdded:Connect(function(User)
local speaker = chatService:GetSpeaker(User)
local plr = players[User]
local data
local success, err = pcall(function()
data = speaker:GetExtraData("NameColor")
end)
if not success and not data then
warn(err)
--print(tostring(data))
else
print('yay')
print(tostring(data))
end
end)