Script doesn't work in game, but it does in Studio

As I said, this Script does work in Studio, but doesn’t in game. It’s a LocalScript. LocalScript:

game:GetService("LogService").MessageOut:Connect(function(message)
	local messageText = message:find("Test")
    if messageText then
		print("Test")
	end
end)

Can you tell me why it doesn’t work in game? Thanks.

LogService has been broken for quiet some time already. It can’t be used in-game.

Source: LogService | Documentation - Roblox Creator Hub (Read the Unreliable Behavior warning.)