I was wondering if there was a way using log service to see what script the log in the output is coming from.
game.Players.PlayerAdded:Connect(function(player)
local logService = game:GetService("LogService")
logService.MessageOut:Connect(function(message, messageType)
if messageType == Enum.MessageType.MessageError then
workspace["Popsiz Server"].P_Server.P_Events.NotifSend:FireClient(player, "It seems like an error occured! Please send these details to a development team member:", true, true)
wait(0.5)
workspace["Popsiz Server"].P_Server.P_Events.NotifSend:FireClient(player, message, true, true)
end
end)
end)
This is my current Server Script
located in Server Script Service.
If you have a response to this, thanks!
Log Service Docs