Hiya!
This is an example snippet of code I am trying to run:
local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
ChatService.SpeakerAdded:Connect(function(speaker)
speaker:JoinChannel(ChatService:AddChannel("Example"))
end)
Originally I split ChatService:AddChannel("Example") and then s = ChatService:GetChannel("Example"), to then put speaker:JoinChannel(s). This all errors in the same manner.
ServerScriptService.GameHandler.TeamChat:12: attempt to call a nil value
I don't understand where I'm slipping up, the channel should be added & then used as input for speaker:JoinChannel, so the speaker should just be added straight into the channel? Why is it crying?

4 comments
Do you know what require() does? You can really just use game:GetService("ChatService") here.
That won't work for chatservice, you need to require it from serverscriptservice.
Which line is the error on?
The error occurs on line 4.