Check this out.You can use the MessageOut event to find out if a message has been sent.Mark as the solution if it helped pls
Sample code from devhub
local msg = Instance.new("Message", workspace)
Game:GetService("LogService").MessageOut:Connect(function(Message, Type)
msg.Text = "The message was "..Message.." and the type was "..tostring(Type)
end)
print("Hello, World!")
Pretty sure that is you cannot do it in luau. Also GetLogHistory and LogService in general is pretty unreliable, and the API may change at any time. I suggest you don’t use logging as a actual game feature. If your game is based on logging, then something is wrong with your game.
that is what im talking about LogService.MessageOut will fire no matter which side had made that output for example
-- Server
local LogService = game:GetService("LogService")
LogService.MessageOut:Connect(function(message)
print(message) -- will print client outputs too
end)
Did you try it in a real server? It doesn’t work for me when playing in a real server. Also even if it works you wont know what client did it and you wont be able to kick him (Unless its a 1 player server)