local ServerScriptService = game:GetService("ServerScriptService")
local module = require(ServerScriptService:WaitForChild("ChatServiceRunner").ChatService)
Error:
Infinite yield possible on ‘ServerScriptService:WaitForChild(“ChatServiceRunner”)’
This happens cause a waitForChild can wait forever until the child is there, therefore yielding the rest of the code, to fix this you need to set the second argument that tells how long TOTAL it can wait:
-- new code
local ServerScriptService = game:GetService("ServerScriptService")
local module = require(ServerScriptService:WaitForChild("ChatServiceRunner",30).ChatService)
Well yes that works to, but at the same time this can also solve the problem.
In coding many things can solve one problem! Just cause one thing works doesnt mean others wont! So keep an open mind!