If you want to send an error logs use LogService | Documentation - Roblox Creator Hub
local LogService = game:GetService("LogService")
local HttpService = game:GetService("HttpService")
local Webhook = 'TYPE_WEBBHOOK_HERE_ok?'
LogService.MessageOut:Connect(function(MessageString, Type)
if Type == Enum.MessageType.MessageError or Type == Enum.MessageType.MessageWarning then
local Message = {
content = MessageString
}
HttpService:PostAsync(Webhook, HttpService:JSONEncode(Message))
end
end)
Player’s don’t need to tell you errors you can usually figure them out yourself.