ChatService speaker issue

Hey, I’m trying to block off a message whenever a player chats for a video (I’m not talking about disabling the entire chat using StarterGui) but just message blocking. I tried this but I get the following error:

local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
--more code which i left out for now
Channel:MuteSpeaker(Player.Name, "x", 0)

Does anybody know a solution? I have no idea.

Interesting. Can you try to print out the speakers first?

How would I do that? 303030303300

You can refer to this