alright so i got this script here that will print off a when a client errors on the server side but i was wondering if i could do the same thing for print() and warn()?
LocalScript:
local errorEvent = game:GetService("ReplicatedStorage"):WaitForChild("errorEvent")
game:GetService("ScriptContext").Error:Connect(function(message, trace, errorScript)
local screwup = errorScript:GetFullName()
errorEvent:FireServer(message, trace, screwup)
end)
Script:
game.ReplicatedStorage.errorEvent.OnServerEvent:Connect(function(player, message, trace, screwup)
warn(player.Name.." had an error")
print(screwup .. " errored!")
print("Reason: "..message)
print("Trace: "..trace)
warn("--------------error report over--------------")
end)
and before i get dumb questions, yes this does work and it works fine as intended without error

2 comments
Thanks!
all i really need this for is catching exploiters so i dont need the script path