How do I change the chat name of a player?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to change the Player’s name in the chat for numerous features in my game, what I did was basically changing the ChatSpeaker.Name.

  2. What is the issue? Include screenshots / videos if possible!
    The test script I’m using works great. The problem is the ChatService unable to filter new messages coming, and my chat color became white.
    image
    It also prints out a warning whenever I chat:
    DoProcessCommands Function 'message_validation' failed for reason: Chat.ChatModules.ChatMessageValidator:58: attempt to index nil with 'GetPlayer'
    Here’s the script I tested with:

-- TEST ON MY SPEAKER
local players = game:GetService('Players')
local chatService = require(script.Parent:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))

local player = players:WaitForChild('HMgamingTheSecondary')
local speaker = nil
repeat
	speaker=chatService:GetSpeaker(player.Name)
	wait(0.1)
until speaker

speaker.Name='test'
  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I can’t find anything else to make this work, nor any topic on the forum related to it.
2 Likes