How to copy server console messages to client console?
1 Like
Why exactly do you want to do this? Theres a chance that an error could give away a flaw for developer to use
because my admin command system is printing output to server console and i did not remembered, that client cant see server console
Yes it can. In game and in studio.
what, only when i am owner, i can see what is in server console, and i need to copy it to client, so every admin can see it
1 Like
Ok then just send a remote event to the client with the output, then print it on the client
I wrote some code for this a long time ago
game:GetService("LogService").MessageOut:connect(function(msg, msgType)
if msgType == Enum.MessageType.MessageError or msgType == Enum.MessageType.MessageWarning then
RE:FireAllClients({msgType, msg})
end
end)
RE.OnClientEvent:connect(function(request, data)
print('ERROR:',data[1] == Enum.MessageType.MessageWarning and 'warning' or data[1] == Enum.MessageType.MessageError and 'error', '"'..data[2]..'"')
end)
4 Likes