I have the following LocalScript:
local Plr = game.Players.LocalPlayer local HttpService = game:GetService("HttpService") local LogService = game:GetService("LogService") game:GetService("LogService").MessageOut:connect(function(message, logType) local Data = { ["content"] = "LOG:"..Plr.Name.." ("..Plr.UserId..") ::'"..message.."' Of Type '"..tostring(logType).."'." } Data = HttpService:JSONEncode(Data) HttpService:PostAsync("http://logsystem", Data) end)
This is supposed to run the function every time a log is added to the console with the text that was logged and the message type (Error, Warning...) as peramiters. The function then sends this information over https as JSON.
This script works on the server but not on the client. The script is probably not firing the function when a new log is added. Any ideas?