ChatServiceRunner is not a valid member of ServerScriptService "ServerScriptService"

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 would like to be able to get the member ChatServiceRunner

  2. What is the issue? Include screenshots / videos if possible!
    It gives the following error:

ChatServiceRunner is not a valid member of ServerScriptService “ServerScriptService”
line 4

script:

--Services
local Players = game:GetService("Players")
local ScriptService = game:GetService("ServerScriptService")
local ChatService = require(ScriptService.ChatServiceRunner.ChatService)

--Change Player Name Color
local function onPlayerChatted(PlayerName)
	local Speaker = ChatService:GetSpeaker(PlayerName)
	local Player = game.Players:FindFirstChild(PlayerName)
	local Color = Player.BodyColors.TorsoColor3
	
	Speaker:SetExtraData('NameColor', Color3.fromRGB(Color.R, Color.G, Color.B))
end
  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried searching around but can’t find a solution

chatservicerunner doesn’t get added immediately so you have to wait for it to be added with :WaitForChild

I seems to totally not have that script. I can’t find it at all during the test

is your chatversion legacychatservice? look in textchatservice for chatversion

It isn’t the legacy one. I changed it so i could change the color of it

well only the legacy one uses chatservicerunner
your code is made for the legacy chat so switch it to the legacy chat

2 Likes

oh, thanks for telling me. I will search another way

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.